forked from KhronosGroup/SPIRV-Headers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish the header for the vulkan-shader-profiler embedded reflection…
… non-semantic instruction set vulkan-shader-profiler is a tool based on perfetto to help vulkan developer profil their applications. First on the Host side using perfetto, but then using the extractor and the runner, this tools allow to get inside about a shader using counters (based on SPV_KHR_shader_clock)
- Loading branch information
Showing
5 changed files
with
200 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// Copyright (c) 2020 The Khronos Group Inc. | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a | ||
// copy of this software and/or associated documentation files (the | ||
// "Materials"), to deal in the Materials without restriction, including | ||
// without limitation the rights to use, copy, modify, merge, publish, | ||
// distribute, sublicense, and/or sell copies of the Materials, and to | ||
// permit persons to whom the Materials are furnished to do so, subject to | ||
// the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included | ||
// in all copies or substantial portions of the Materials. | ||
// | ||
// MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS | ||
// KHRONOS STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS | ||
// SPECIFICATIONS AND HEADER INFORMATION ARE LOCATED AT | ||
// https://www.khronos.org/registry/ | ||
// | ||
// THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. | ||
// | ||
|
||
#ifndef SPIRV_UNIFIED1_NonSemanticVkspReflection_H_ | ||
#define SPIRV_UNIFIED1_NonSemanticVkspReflection_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
enum { | ||
NonSemanticVkspReflectionRevision = 1, | ||
NonSemanticVkspReflectionRevision_BitWidthPadding = 0x7fffffff | ||
}; | ||
|
||
enum NonSemanticVkspReflectionInstructions { | ||
NonSemanticVkspReflectionConfiguration = 1, | ||
NonSemanticVkspReflectionStartCounter = 2, | ||
NonSemanticVkspReflectionStopCounter = 3, | ||
NonSemanticVkspReflectionPushConstants = 4, | ||
NonSemanticVkspReflectionSpecializationMapEntry = 5, | ||
NonSemanticVkspReflectionDescriptorSetBuffer = 6, | ||
NonSemanticVkspReflectionDescriptorSetImage = 7, | ||
NonSemanticVkspReflectionDescriptorSetSampler = 8, | ||
NonSemanticVkspReflectionInstructionsMax = 0x7fffffff | ||
}; | ||
|
||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // SPIRV_UNIFIED1_NonSemanticVkspReflection_H_ |
135 changes: 135 additions & 0 deletions
135
include/spirv/unified1/extinst.nonsemantic.vkspreflection.grammar.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
{ | ||
"revision" : 1, | ||
"instructions" : [ | ||
{ | ||
"opname" : "Configuration", | ||
"opcode" : 1, | ||
"operands" : [ | ||
{"kind" : "LiteralString", "name" : "enabledExtensionNames" }, | ||
{"kind" : "LiteralInteger", "name" : "specializationInfoDataSize" }, | ||
{"kind" : "LiteralString", "name" : "specializationInfoData" }, | ||
{"kind" : "LiteralString", "name" : "shaderName" }, | ||
{"kind" : "LiteralString", "name" : "EntryPoint" }, | ||
{"kind" : "LiteralInteger", "name" : "groupCountX" }, | ||
{"kind" : "LiteralInteger", "name" : "groupCountY" }, | ||
{"kind" : "LiteralInteger", "name" : "groupCountZ" } | ||
] | ||
}, | ||
{ | ||
"opname" : "StartCounter", | ||
"opcode" : 2, | ||
"operands" : [ | ||
{"kind" : "LiteralString", "name" : "name" } | ||
] | ||
}, | ||
{ | ||
"opname" : "StopCounter", | ||
"opcode" : 3, | ||
"operands" : [ | ||
{"kind" : "IdRef", "name" : "counter" } | ||
] | ||
}, | ||
{ | ||
"opname" : "PushConstants", | ||
"opcode" : 4, | ||
"operands" : [ | ||
{ "kind" : "LiteralInteger", "name" : "offset" }, | ||
{ "kind" : "LiteralInteger", "name" : "size" }, | ||
{ "kind" : "LiteralString", "name" : "pValues" }, | ||
{ "kind" : "LiteralInteger", "name" : "stageFlags" } | ||
] | ||
}, | ||
{ | ||
"opname" : "SpecializationMapEntry", | ||
"opcode" : 5, | ||
"operands" : [ | ||
{"kind" : "LiteralInteger", "name" : "constantID" }, | ||
{"kind" : "LiteralInteger", "name" : "offset" }, | ||
{"kind" : "LiteralInteger", "name" : "size" } | ||
] | ||
}, | ||
{ | ||
"opname" : "DescriptorSetBuffer", | ||
"opcode" : 6, | ||
"operands" : [ | ||
{ "kind" : "LiteralInteger", "name" : "ds" }, | ||
{ "kind" : "LiteralInteger", "name" : "binding" }, | ||
{ "kind" : "LiteralInteger", "name" : "type" }, | ||
{ "kind" : "LiteralInteger", "name" : "flags" }, | ||
{ "kind" : "LiteralInteger", "name" : "queueFamilyIndexCount" }, | ||
{ "kind" : "LiteralInteger", "name" : "sharingMode" }, | ||
{ "kind" : "LiteralInteger", "name" : "size" }, | ||
{ "kind" : "LiteralInteger", "name" : "usage" }, | ||
{ "kind" : "LiteralInteger", "name" : "range" }, | ||
{ "kind" : "LiteralInteger", "name" : "offset" }, | ||
{ "kind" : "LiteralInteger", "name" : "memorySize" }, | ||
{ "kind" : "LiteralInteger", "name" : "memoryType" }, | ||
{ "kind" : "LiteralInteger", "name" : "bindOffset" } | ||
] | ||
}, | ||
{ | ||
"opname" : "DescriptorSetImage", | ||
"opcode" : 7, | ||
"operands" : [ | ||
{ "kind" : "LiteralInteger", "name" : "ds" }, | ||
{ "kind" : "LiteralInteger", "name" : "binding" }, | ||
{ "kind" : "LiteralInteger", "name" : "type" }, | ||
{ "kind" : "LiteralInteger", "name" : "imageLayout"}, | ||
{ "kind" : "LiteralInteger", "name" : "imageFlags"}, | ||
{ "kind" : "LiteralInteger", "name" : "imageType"}, | ||
{ "kind" : "LiteralInteger", "name" : "imageformat"}, | ||
{ "kind" : "LiteralInteger", "name" : "width"}, | ||
{ "kind" : "LiteralInteger", "name" : "height"}, | ||
{ "kind" : "LiteralInteger", "name" : "depth"}, | ||
{ "kind" : "LiteralInteger", "name" : "mipLevels"}, | ||
{ "kind" : "LiteralInteger", "name" : "arrayLayers"}, | ||
{ "kind" : "LiteralInteger", "name" : "samples"}, | ||
{ "kind" : "LiteralInteger", "name" : "tiling"}, | ||
{ "kind" : "LiteralInteger", "name" : "usage"}, | ||
{ "kind" : "LiteralInteger", "name" : "sharingMode"}, | ||
{ "kind" : "LiteralInteger", "name" : "queueFamilyIndexCount"}, | ||
{ "kind" : "LiteralInteger", "name" : "initialLayout"}, | ||
{ "kind" : "LiteralInteger", "name" : "aspectMask"}, | ||
{ "kind" : "LiteralInteger", "name" : "baseMipLevel"}, | ||
{ "kind" : "LiteralInteger", "name" : "levelCount"}, | ||
{ "kind" : "LiteralInteger", "name" : "baseArrayLayer"}, | ||
{ "kind" : "LiteralInteger", "name" : "layerCount"}, | ||
{ "kind" : "LiteralInteger", "name" : "viewFlags"}, | ||
{ "kind" : "LiteralInteger", "name" : "viewType"}, | ||
{ "kind" : "LiteralInteger", "name" : "viewFormat"}, | ||
{ "kind" : "LiteralInteger", "name" : "component_a"}, | ||
{ "kind" : "LiteralInteger", "name" : "component_b"}, | ||
{ "kind" : "LiteralInteger", "name" : "component_g"}, | ||
{ "kind" : "LiteralInteger", "name" : "component_r"}, | ||
{ "kind" : "LiteralInteger", "name" : "memorySize" }, | ||
{ "kind" : "LiteralInteger", "name" : "memoryType" }, | ||
{ "kind" : "LiteralInteger", "name" : "bindOffset"} | ||
] | ||
}, | ||
{ | ||
"opname" : "DescriptorSetSampler", | ||
"opcode" : 8, | ||
"operands" : [ | ||
{ "kind" : "LiteralInteger", "name" : "ds" }, | ||
{ "kind" : "LiteralInteger", "name" : "binding" }, | ||
{ "kind" : "LiteralInteger", "name" : "type" }, | ||
{ "kind" : "LiteralInteger", "name" : "flags"}, | ||
{ "kind" : "LiteralInteger", "name" : "magFilter"}, | ||
{ "kind" : "LiteralInteger", "name" : "minFilter"}, | ||
{ "kind" : "LiteralInteger", "name" : "mipmapMode"}, | ||
{ "kind" : "LiteralInteger", "name" : "addressModeU"}, | ||
{ "kind" : "LiteralInteger", "name" : "addressModeV"}, | ||
{ "kind" : "LiteralInteger", "name" : "addressModeW"}, | ||
{ "kind" : "LiteralFloat", "name" : "mipLodBias"}, | ||
{ "kind" : "LiteralInteger", "name" : "anisotropyEnable"}, | ||
{ "kind" : "LiteralFloat", "name" : "maxAnisotropy"}, | ||
{ "kind" : "LiteralInteger", "name" : "compareEnable"}, | ||
{ "kind" : "LiteralInteger", "name" : "compareOp"}, | ||
{ "kind" : "LiteralFloat", "name" : "minLod"}, | ||
{ "kind" : "LiteralFloat", "name" : "maxLod"}, | ||
{ "kind" : "LiteralInteger", "name" : "borderColor"}, | ||
{ "kind" : "LiteralInteger", "name" : "unnormalizedCoordinates"} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters