summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/assets/TestComputeShaders.lua
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-03 17:33:43 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-03 17:33:43 +0000
commit54bdcc4e5c3aac56d22da3aaf3cac10dd6807bdf (patch)
treef3911330de9cac5af8f8045270b0879585e3bb2a /Tests/TestApp/assets/TestComputeShaders.lua
parentFixed linux build (diff)
downloadDiligentEngine-54bdcc4e5c3aac56d22da3aaf3cac10dd6807bdf.tar.gz
DiligentEngine-54bdcc4e5c3aac56d22da3aaf3cac10dd6807bdf.zip
Updated the API (SetVertexBuffers, SetIndexBuffers, DRAW_FLAGS and other)
Diffstat (limited to 'Tests/TestApp/assets/TestComputeShaders.lua')
-rw-r--r--Tests/TestApp/assets/TestComputeShaders.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/Tests/TestApp/assets/TestComputeShaders.lua b/Tests/TestApp/assets/TestComputeShaders.lua
index 10500fe..695c482 100644
--- a/Tests/TestApp/assets/TestComputeShaders.lua
+++ b/Tests/TestApp/assets/TestComputeShaders.lua
@@ -313,7 +313,8 @@ DrawAttrs = DrawAttribs.Create{
IsIndexed = true,
IndexType = "VT_UINT32",
pIndirectDrawAttribs = IndirectDrawArgsBuffer,
- Flags = {"DRAW_FLAG_TRANSITION_VERTEX_BUFFERS", "DRAW_FLAG_TRANSITION_INDEX_BUFFER", "DRAW_FLAG_TRANSITION_INDIRECT_ARGS_BUFFER"}
+ IndirectAttribsBufferStateTransitionMode = "RESOURCE_STATE_TRANSITION_MODE_TRANSITION",
+ Flags = {"DRAW_FLAG_VERIFY_STATES"}
}
@@ -322,8 +323,8 @@ function Draw()
Context.SetPipelineState(RenderPSO)
Context.TransitionShaderResources(RenderPSO, RenderSRB)
Context.CommitShaderResources(RenderSRB)
- Context.SetVertexBuffers(PositionsBuffer, 0, TexcoordBuffer, TexcoordDataOffset, "SET_VERTEX_BUFFERS_FLAG_RESET")
- Context.SetIndexBuffer(IndexBuffer)
+ Context.SetVertexBuffers(PositionsBuffer, 0, TexcoordBuffer, TexcoordDataOffset, "RESOURCE_STATE_TRANSITION_MODE_TRANSITION", "SET_VERTEX_BUFFERS_FLAG_RESET")
+ Context.SetIndexBuffer(IndexBuffer, "RESOURCE_STATE_TRANSITION_MODE_TRANSITION" )
Context.Draw(DrawAttrs)
end
@@ -351,7 +352,7 @@ function Dispatch()
Context.SetPipelineState(UpdateDrawArgsBuffPSO)
Context.CommitShaderResources(UpdateDrawArgsBuffSRB, "RESOURCE_STATE_TRANSITION_MODE_TRANSITION")
- Context.DispatchCompute(IndirectDispatchArgsBuffer, 16, "DISPATCH_FLAG_TRANSITION_INDIRECT_ARGS_BUFFER")
+ Context.DispatchCompute(IndirectDispatchArgsBuffer, 16, "RESOURCE_STATE_TRANSITION_MODE_TRANSITION")
Context.SetPipelineState(UpdateIndBuffPSO)
Context.TransitionShaderResources(UpdateIndBuffPSO, UpdateIndBuffSRB)