From 3af404da7f7f125464b78159940cb3fc06e69cc5 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 17 Sep 2019 12:25:45 -0400 Subject: CPU ABI improvements (#1056) * WIP: Improving CPU performance/ABI * Optionally output code on CPU for groupThreadID and groupID. * Added ability to set compute dispatch size on command line for render-test. Dispatch compute tests taking into account dispatch size. Added test for semantics are working. * Test using GroupRange. * Fix problem with adding \n for externa diagnostic - to do it if there isn't a \n at the end. Change the ouput order (put result before) so last value is diagnostic string. --- prelude/slang-cpp-types.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'prelude') diff --git a/prelude/slang-cpp-types.h b/prelude/slang-cpp-types.h index d5d88d7b2..c79465032 100644 --- a/prelude/slang-cpp-types.h +++ b/prelude/slang-cpp-types.h @@ -232,6 +232,12 @@ struct ComputeVaryingInput uint3 groupThreadID; }; +struct GroupComputeVaryingInput +{ + uint3 startGroupID; ///< start groupID + uint3 endGroupID; ///< Non inclusive end groupID +}; + /* Type that defines the uniform entry point params. The actual content of this type is dependent on the entry point parameters, and can be found via reflection or defined such that it matches the shader appropriately. */ struct UniformEntryPointParams; -- cgit v1.2.3