tweaking
This commit is contained in:
parent
a13697ac59
commit
b363160103
@ -21,7 +21,7 @@ void PT_RunForever(WaveLaneCtx *lane)
|
||||
// Push resources
|
||||
Vec2I32 final_target_size = window_frame.draw_size;
|
||||
G_ResourceHandle final_target = G_PushTexture2D(
|
||||
gpu_frame_arena,
|
||||
gpu_frame_arena, cl,
|
||||
G_Format_R16G16B16A16_Float,
|
||||
final_target_size,
|
||||
G_Layout_DirectQueue_ShaderReadWrite,
|
||||
@ -36,7 +36,7 @@ void PT_RunForever(WaveLaneCtx *lane)
|
||||
{
|
||||
G_SetConstant(cl, PT_ShaderConst_TestTarget, final_target_rwhandle);
|
||||
G_SetConstant(cl, PT_ShaderConst_TestConst, 3.123);
|
||||
G_SetConstant(cl, PT_ShaderConst_BlitSampler, G_BasicPointSampler);
|
||||
G_SetConstant(cl, PT_ShaderConst_BlitSampler, G_BasicPointClampSampler());
|
||||
G_SetConstant(cl, PT_ShaderConst_BlitSrc, final_target_rhandle);
|
||||
G_SetConstant(cl, PT_ShaderConst_NoiseTex, G_BasicNoiseTexture());
|
||||
}
|
||||
@ -58,8 +58,8 @@ void PT_RunForever(WaveLaneCtx *lane)
|
||||
G_Rasterize(
|
||||
cl,
|
||||
PT_BlitVS, PT_BlitPS,
|
||||
1, G_GetSharedQuadIndices(),
|
||||
1, &window_frame.backbuffer,
|
||||
1, G_QuadIndices(),
|
||||
1, &G_Rt(window_frame.backbuffer, G_BlendMode_CompositeStraightAlpha),
|
||||
G_ViewportFromTexture(window_frame.backbuffer), G_ScissorFromTexture(window_frame.backbuffer),
|
||||
G_RasterMode_TriangleList
|
||||
);
|
||||
@ -78,7 +78,7 @@ void PT_RunForever(WaveLaneCtx *lane)
|
||||
G_CommitCommandList(cl);
|
||||
}
|
||||
}
|
||||
WND_EndFrame(window_frame, VSYNC);
|
||||
WND_EndFrame(window_frame, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
|
||||
@Dep gpu
|
||||
@Dep window
|
||||
@Dep ui
|
||||
|
||||
//////////////////////////////
|
||||
//- Resources
|
||||
|
||||
Loading…
Reference in New Issue
Block a user