diff options
author | greg-lunarg <greg@lunarg.com> | 2020-07-14 18:55:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 18:55:24 +0300 |
commit | 282392dda2e9349f1972942bbd535886793dd539 (patch) | |
tree | 4c289db455be272d8eb923b471b650f85a7c761d /include | |
parent | c9b254d045ebcff627163445fddb1cb9ec7a14e6 (diff) |
Add support to GPU-AV instrumentation for Task and Mesh shaders (#3512)
Diffstat (limited to 'include')
-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 ef5136a8c..b4f33554d 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; |