Update bgfx_compute.sh

fix the indirect define declarations
This commit is contained in:
Paul Gruenbacher
2019-11-14 14:52:26 -06:00
committed by Бранимир Караџић
parent 037116ac4f
commit 5ca9458605

View File

@@ -333,7 +333,7 @@ __IMAGE_IMPL_ATOMIC(r32ui, x, uvec4, xxxx)
, _numY \
, _numZ \
) \
_buffer[_offset*2+0] = uvec4(_numX, _numY, _numZ, 0u)
_buffer[(_offset)*2+0] = uvec4(_numX, _numY, _numZ, 0u)
#define drawIndirect( \
_buffer \
@@ -343,7 +343,7 @@ __IMAGE_IMPL_ATOMIC(r32ui, x, uvec4, xxxx)
, _startVertex \
, _startInstance \
) \
_buffer[_offset*2+0] = uvec4(_numVertices, _numInstances, _startVertex, _startInstance)
_buffer[(_offset)*2+0] = uvec4(_numVertices, _numInstances, _startVertex, _startInstance)
#define drawIndexedIndirect( \
_buffer \
@@ -354,8 +354,8 @@ __IMAGE_IMPL_ATOMIC(r32ui, x, uvec4, xxxx)
, _startVertex \
, _startInstance \
) \
_buffer[_offset*2+0] = uvec4(_numIndices, _numInstances, _startIndex, _startVertex); \
_buffer[_offset*2+1] = uvec4(_startInstance, 0u, 0u, 0u)
_buffer[(_offset)*2+0] = uvec4(_numIndices, _numInstances, _startIndex, _startVertex); \
_buffer[(_offset)*2+1] = uvec4(_startInstance, 0u, 0u, 0u)
#endif // __cplusplus