diff options
author | greg-lunarg <greg@lunarg.com> | 2020-07-14 09:55:24 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 11:55:24 -0400 |
commit | 282392dda2e9349f1972942bbd535886793dd539 (patch) | |
tree | 4c289db455be272d8eb923b471b650f85a7c761d /include/spirv-tools/instrument.hpp | |
parent | c9b254d045ebcff627163445fddb1cb9ec7a14e6 (diff) | |
download | spirv-tools-282392dda2e9349f1972942bbd535886793dd539.tar.gz |
Add support to GPU-AV instrumentation for Task and Mesh shaders (#3512)
Diffstat (limited to 'include/spirv-tools/instrument.hpp')
-rw-r--r-- | include/spirv-tools/instrument.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/spirv-tools/instrument.hpp b/include/spirv-tools/instrument.hpp index ef5136a8..b4f33554 100644 --- a/include/spirv-tools/instrument.hpp +++ b/include/spirv-tools/instrument.hpp @@ -110,6 +110,16 @@ static const int kInstRayTracingOutLaunchIdX = kInstCommonOutCnt; static const int kInstRayTracingOutLaunchIdY = kInstCommonOutCnt + 1; static const int kInstRayTracingOutLaunchIdZ = kInstCommonOutCnt + 2; +// Mesh Shader Output Record Offsets +static const int kInstMeshOutGlobalInvocationIdX = kInstCommonOutCnt; +static const int kInstMeshOutGlobalInvocationIdY = kInstCommonOutCnt + 1; +static const int kInstMeshOutGlobalInvocationIdZ = kInstCommonOutCnt + 2; + +// Task Shader Output Record Offsets +static const int kInstTaskOutGlobalInvocationIdX = kInstCommonOutCnt; +static const int kInstTaskOutGlobalInvocationIdY = kInstCommonOutCnt + 1; +static const int kInstTaskOutGlobalInvocationIdZ = kInstCommonOutCnt + 2; + // Size of Common and Stage-specific Members static const int kInstStageOutCnt = kInstCommonOutCnt + 3; |