Skip to content

Commit

Permalink
Add headers for SPV_NV_linear_swept_spheres. (#483)
Browse files Browse the repository at this point in the history
* Add headers for SPV_NV_linear_swept_spheres.
  • Loading branch information
alelenv authored Jan 29, 2025
1 parent 003bcf4 commit e7294a8
Show file tree
Hide file tree
Showing 10 changed files with 568 additions and 0 deletions.
23 changes: 23 additions & 0 deletions include/spirv/unified1/spirv.bf
Original file line number Diff line number Diff line change
Expand Up @@ -799,12 +799,18 @@ namespace Spv
IncomingRayFlagsKHR = 5351,
IncomingRayFlagsNV = 5351,
RayGeometryIndexKHR = 5352,
HitIsSphereNV = 5359,
HitIsLSSNV = 5360,
HitSpherePositionNV = 5361,
WarpsPerSMNV = 5374,
SMCountNV = 5375,
WarpIDNV = 5376,
SMIDNV = 5377,
HitLSSPositionsNV = 5396,
HitKindFrontFacingMicroTriangleNV = 5405,
HitKindBackFacingMicroTriangleNV = 5406,
HitSphereRadiusNV = 5420,
HitLSSRadiiNV = 5421,
ClusterIDNV = 5436,
CullMaskKHR = 6021,
Max = 0x7fffffff,
Expand Down Expand Up @@ -1207,6 +1213,8 @@ namespace Spv
AtomicFloat16VectorNV = 5404,
RayTracingDisplacementMicromapNV = 5409,
RawAccessChainsNV = 5414,
RayTracingSpheresGeometryNV = 5418,
RayTracingLinearSweptSpheresGeometryNV = 5419,
CooperativeMatrixReductionsNV = 5430,
CooperativeMatrixConversionsNV = 5431,
CooperativeMatrixPerElementOperationsNV = 5432,
Expand Down Expand Up @@ -1310,6 +1318,7 @@ namespace Spv
CullFrontFacingTrianglesKHR = 5,
CullOpaqueKHR = 6,
CullNoOpaqueKHR = 7,
SkipBuiltinPrimitivesNV = 8,
SkipTrianglesKHR = 8,
SkipAABBsKHR = 9,
ForceOpacityMicromap2StateEXT = 10,
Expand All @@ -1327,6 +1336,7 @@ namespace Spv
CullFrontFacingTrianglesKHR = 0x00000020,
CullOpaqueKHR = 0x00000040,
CullNoOpaqueKHR = 0x00000080,
SkipBuiltinPrimitivesNV = 0x00000100,
SkipTrianglesKHR = 0x00000100,
SkipAABBsKHR = 0x00000200,
ForceOpacityMicromap2StateEXT = 0x00000400,
Expand Down Expand Up @@ -2142,6 +2152,19 @@ namespace Spv
OpConvertSampledImageToUNV = 5396,
OpSamplerImageAddressingModeNV = 5397,
OpRawAccessChainNV = 5398,
OpRayQueryGetIntersectionSpherePositionNV = 5427,
OpRayQueryGetIntersectionSphereRadiusNV = 5428,
OpRayQueryGetIntersectionLSSPositionsNV = 5429,
OpRayQueryGetIntersectionLSSRadiiNV = 5430,
OpRayQueryGetIntersectionLSSHitValueNV = 5431,
OpHitObjectGetSpherePositionNV = 5432,
OpHitObjectGetSphereRadiusNV = 5433,
OpHitObjectGetLSSPositionsNV = 5434,
OpHitObjectGetLSSRadiiNV = 5435,
OpHitObjectIsSphereHitNV = 5436,
OpHitObjectIsLSSHitNV = 5437,
OpRayQueryIsSphereHitNV = 5438,
OpRayQueryIsLSSHitNV = 5439,
OpSubgroupShuffleINTEL = 5571,
OpSubgroupShuffleDownINTEL = 5572,
OpSubgroupShuffleUpINTEL = 5573,
Expand Down
260 changes: 260 additions & 0 deletions include/spirv/unified1/spirv.core.grammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -6789,6 +6789,211 @@
],
"version" : "None"
},
{
"opname" : "OpRayQueryGetIntersectionSpherePositionNV",
"class" : "Reserved",
"opcode" : 5427,
"operands" : [
{ "kind" : "IdResultType" },
{ "kind" : "IdResult" },
{
"kind" : "IdRef",
"name" : "'RayQuery'"
},
{
"kind" : "IdRef",
"name" : "'Intersection'"
}
],
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
"version" : "None"
},
{
"opname" : "OpRayQueryGetIntersectionSphereRadiusNV",
"class" : "Reserved",
"opcode" : 5428,
"operands" : [
{ "kind" : "IdResultType" },
{ "kind" : "IdResult" },
{
"kind" : "IdRef",
"name" : "'RayQuery'"
},
{
"kind" : "IdRef",
"name" : "'Intersection'"
}
],
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
"version" : "None"
},
{
"opname" : "OpRayQueryGetIntersectionLSSPositionsNV",
"class" : "Reserved",
"opcode" : 5429,
"operands" : [
{ "kind" : "IdResultType" },
{ "kind" : "IdResult" },
{
"kind" : "IdRef",
"name" : "'RayQuery'"
},
{
"kind" : "IdRef",
"name" : "'Intersection'"
}
],
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
"version" : "None"
},
{
"opname" : "OpRayQueryGetIntersectionLSSRadiiNV",
"class" : "Reserved",
"opcode" : 5430,
"operands" : [
{ "kind" : "IdResultType" },
{ "kind" : "IdResult" },
{
"kind" : "IdRef",
"name" : "'RayQuery'"
},
{
"kind" : "IdRef",
"name" : "'Intersection'"
}
],
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV"],
"version" : "None"
},
{
"opname" : "OpRayQueryGetIntersectionLSSHitValueNV",
"class" : "Reserved",
"opcode" : 5431,
"operands" : [
{ "kind" : "IdResultType" },
{ "kind" : "IdResult" },
{
"kind" : "IdRef",
"name" : "'RayQuery'"
},
{
"kind" : "IdRef",
"name" : "'Intersection'"
}
],
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
"version" : "None"
},
{
"opname" : "OpHitObjectGetSpherePositionNV",
"class" : "Reserved",
"opcode" : 5432,
"operands" : [
{ "kind" : "IdResultType"},
{ "kind" : "IdResult"},
{ "kind" : "IdRef", "name" : "'Hit Object'" }
],
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
"version" : "None"
},
{
"opname" : "OpHitObjectGetSphereRadiusNV",
"class" : "Reserved",
"opcode" : 5433,
"operands" : [
{ "kind" : "IdResultType"},
{ "kind" : "IdResult"},
{ "kind" : "IdRef", "name" : "'Hit Object'" }
],
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
"version" : "None"
},
{
"opname" : "OpHitObjectGetLSSPositionsNV",
"class" : "Reserved",
"opcode" : 5434,
"operands" : [
{ "kind" : "IdResultType"},
{ "kind" : "IdResult"},
{ "kind" : "IdRef", "name" : "'Hit Object'" }
],
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
"version" : "None"
},
{
"opname" : "OpHitObjectGetLSSRadiiNV",
"class" : "Reserved",
"opcode" : 5435,
"operands" : [
{ "kind" : "IdResultType"},
{ "kind" : "IdResult"},
{ "kind" : "IdRef", "name" : "'Hit Object'" }
],
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
"version" : "None"
},
{
"opname" : "OpHitObjectIsSphereHitNV",
"class" : "Reserved",
"opcode" : 5436,
"operands" : [
{ "kind" : "IdResultType"},
{ "kind" : "IdResult"},
{ "kind" : "IdRef", "name" : "'Hit Object'" }
],
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
"version" : "None"
},
{
"opname" : "OpHitObjectIsLSSHitNV",
"class" : "Reserved",
"opcode" : 5437,
"operands" : [
{ "kind" : "IdResultType"},
{ "kind" : "IdResult"},
{ "kind" : "IdRef", "name" : "'Hit Object'" }
],
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
"version" : "None"
},
{
"opname" : "OpRayQueryIsSphereHitNV",
"class" : "Reserved",
"opcode" : 5438,
"operands" : [
{ "kind" : "IdResultType" },
{ "kind" : "IdResult" },
{
"kind" : "IdRef",
"name" : "'RayQuery'"
},
{
"kind" : "IdRef",
"name" : "'Intersection'"
}
],
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
"version" : "None"
},
{
"opname" : "OpRayQueryIsLSSHitNV",
"class" : "Reserved",
"opcode" : 5439,
"operands" : [
{ "kind" : "IdResultType" },
{ "kind" : "IdResult" },
{
"kind" : "IdRef",
"name" : "'RayQuery'"
},
{
"kind" : "IdRef",
"name" : "'Intersection'"
}
],
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
"version" : "None"
},
{
"opname" : "OpSubgroupShuffleINTEL",
"class" : "Group",
Expand Down Expand Up @@ -11194,6 +11399,7 @@
},
{
"enumerant" : "SkipTrianglesKHR",
"aliases" : ["SkipBuiltinPrimitivesNV"],
"value" : "0x0100",
"capabilities" : [ "RayTraversalPrimitiveCullingKHR" ],
"version" : "None"
Expand Down Expand Up @@ -15146,6 +15352,27 @@
"extensions" : [ "SPV_KHR_ray_tracing" ],
"version" : "None"
},
{
"enumerant" : "HitIsSphereNV",
"value" : 5359,
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
"version" : "None"
},
{
"enumerant" : "HitIsLSSNV",
"value" : 5360,
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
"version" : "None"
},
{
"enumerant" : "HitSpherePositionNV",
"value" : 5361,
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
"version" : "None"
},
{
"enumerant" : "WarpsPerSMNV",
"value" : 5374,
Expand Down Expand Up @@ -15174,6 +15401,13 @@
"extensions" : [ "SPV_NV_shader_sm_builtins" ],
"version" : "None"
},
{
"enumerant" : "HitLSSPositionsNV",
"value" : 5396,
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
"version" : "None"
},
{
"enumerant" : "HitKindFrontFacingMicroTriangleNV",
"value" : 5405,
Expand All @@ -15186,6 +15420,20 @@
"capabilities" : [ "RayTracingDisplacementMicromapNV" ],
"version" : "None"
},
{
"enumerant" : "HitSphereRadiusNV",
"value" : 5420,
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
"version" : "None"
},
{
"enumerant" : "HitLSSRadiiNV",
"value" : 5421,
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
"version" : "None"
},
{
"enumerant" : "ClusterIDNV",
"value" : 5436,
Expand Down Expand Up @@ -16398,6 +16646,18 @@
"extensions" : [ "SPV_NV_raw_access_chains" ],
"version" : "None"
},
{
"enumerant" : "RayTracingSpheresGeometryNV",
"value" : 5418,
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
"version" : "None"
},
{
"enumerant" : "RayTracingLinearSweptSpheresGeometryNV",
"value" : 5419,
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
"version" : "None"
},
{
"enumerant" : "CooperativeMatrixReductionsNV",
"value" : 5430,
Expand Down
Loading

0 comments on commit e7294a8

Please sign in to comment.