diff options
Diffstat (limited to '3rdparty/bgfx/examples/37-gpudrivenrendering/cs_gdr_stream_compaction.sc')
-rw-r--r-- | 3rdparty/bgfx/examples/37-gpudrivenrendering/cs_gdr_stream_compaction.sc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/bgfx/examples/37-gpudrivenrendering/cs_gdr_stream_compaction.sc b/3rdparty/bgfx/examples/37-gpudrivenrendering/cs_gdr_stream_compaction.sc index 3c35acdc7e8..e8fcc64f384 100644 --- a/3rdparty/bgfx/examples/37-gpudrivenrendering/cs_gdr_stream_compaction.sc +++ b/3rdparty/bgfx/examples/37-gpudrivenrendering/cs_gdr_stream_compaction.sc @@ -32,8 +32,8 @@ void main() int NoofDrawcalls = int(u_cullingConfig.w); int offset = 1; - temp[2 * tID ] = uint(instancePredicates[2 * tID ]); // load input into shared memory - temp[2 * tID + 1] = uint(instancePredicates[2 * tID + 1]); + temp[2 * tID ] = uint(instancePredicates[2 * tID ] ? 1 : 0); // load input into shared memory + temp[2 * tID + 1] = uint(instancePredicates[2 * tID + 1] ? 1 : 0); int d; |