From 017f5133606d1e9c433048a8e50b9648fff2b81f Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 2 Dec 2018 17:42:16 -0800 Subject: Replaced COMMIT_SHADER_RESOURCES_FLAGS with RESOURCE_STATE_TRANSITION_MODE --- Tests/TestApp/assets/TestComputeShaders.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Tests/TestApp/assets/TestComputeShaders.lua') diff --git a/Tests/TestApp/assets/TestComputeShaders.lua b/Tests/TestApp/assets/TestComputeShaders.lua index aa931fe..10500fe 100644 --- a/Tests/TestApp/assets/TestComputeShaders.lua +++ b/Tests/TestApp/assets/TestComputeShaders.lua @@ -339,7 +339,7 @@ function Dispatch() local NumGroupsY = math.floor( (bit32.rshift(TestTexture.Height, Mip) + ThreadGroupSizeX - 1) / ThreadGroupSizeY ) tex2DTestUAV:Set(UAVs[Mip]) - Context.CommitShaderResources(FillTextureSRB, "COMMIT_SHADER_RESOURCES_FLAG_TRANSITION_RESOURCES" ) + Context.CommitShaderResources(FillTextureSRB, "RESOURCE_STATE_TRANSITION_MODE_TRANSITION" ) Context.DispatchCompute(NumGroupsX, NumGroupsY) end @@ -350,7 +350,7 @@ function Dispatch() Context.DispatchCompute(1) Context.SetPipelineState(UpdateDrawArgsBuffPSO) - Context.CommitShaderResources(UpdateDrawArgsBuffSRB, "COMMIT_SHADER_RESOURCES_FLAG_TRANSITION_RESOURCES") + Context.CommitShaderResources(UpdateDrawArgsBuffSRB, "RESOURCE_STATE_TRANSITION_MODE_TRANSITION") Context.DispatchCompute(IndirectDispatchArgsBuffer, 16, "DISPATCH_FLAG_TRANSITION_INDIRECT_ARGS_BUFFER") Context.SetPipelineState(UpdateIndBuffPSO) @@ -359,7 +359,7 @@ function Dispatch() Context.DispatchCompute(1) Context.SetPipelineState(UpdateVertBuffPSO) - Context.CommitShaderResources(UpdateVertBuffSRB, "COMMIT_SHADER_RESOURCES_FLAG_TRANSITION_RESOURCES") + Context.CommitShaderResources(UpdateVertBuffSRB, "RESOURCE_STATE_TRANSITION_MODE_TRANSITION") Context.DispatchCompute(2) return Draw() -- cgit v1.2.3