diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-03 01:42:16 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-03 01:42:16 +0000 |
| commit | 017f5133606d1e9c433048a8e50b9648fff2b81f (patch) | |
| tree | 2bda8756ff59b53852a587c6133df3d7347f9f29 /Tests/TestApp/assets/TestComputeShaders.lua | |
| parent | Fixed linux build error (diff) | |
| download | DiligentEngine-017f5133606d1e9c433048a8e50b9648fff2b81f.tar.gz DiligentEngine-017f5133606d1e9c433048a8e50b9648fff2b81f.zip | |
Replaced COMMIT_SHADER_RESOURCES_FLAGS with RESOURCE_STATE_TRANSITION_MODE
Diffstat (limited to 'Tests/TestApp/assets/TestComputeShaders.lua')
| -rw-r--r-- | Tests/TestApp/assets/TestComputeShaders.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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() |
