Skip to content

Commit e7294a8

Browse files
authored
Add headers for SPV_NV_linear_swept_spheres. (KhronosGroup#483)
* Add headers for SPV_NV_linear_swept_spheres.
1 parent 003bcf4 commit e7294a8

10 files changed

Lines changed: 568 additions & 0 deletions

File tree

include/spirv/unified1/spirv.bf

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,12 +799,18 @@ namespace Spv
799799
IncomingRayFlagsKHR = 5351,
800800
IncomingRayFlagsNV = 5351,
801801
RayGeometryIndexKHR = 5352,
802+
HitIsSphereNV = 5359,
803+
HitIsLSSNV = 5360,
804+
HitSpherePositionNV = 5361,
802805
WarpsPerSMNV = 5374,
803806
SMCountNV = 5375,
804807
WarpIDNV = 5376,
805808
SMIDNV = 5377,
809+
HitLSSPositionsNV = 5396,
806810
HitKindFrontFacingMicroTriangleNV = 5405,
807811
HitKindBackFacingMicroTriangleNV = 5406,
812+
HitSphereRadiusNV = 5420,
813+
HitLSSRadiiNV = 5421,
808814
ClusterIDNV = 5436,
809815
CullMaskKHR = 6021,
810816
Max = 0x7fffffff,
@@ -1207,6 +1213,8 @@ namespace Spv
12071213
AtomicFloat16VectorNV = 5404,
12081214
RayTracingDisplacementMicromapNV = 5409,
12091215
RawAccessChainsNV = 5414,
1216+
RayTracingSpheresGeometryNV = 5418,
1217+
RayTracingLinearSweptSpheresGeometryNV = 5419,
12101218
CooperativeMatrixReductionsNV = 5430,
12111219
CooperativeMatrixConversionsNV = 5431,
12121220
CooperativeMatrixPerElementOperationsNV = 5432,
@@ -1310,6 +1318,7 @@ namespace Spv
13101318
CullFrontFacingTrianglesKHR = 5,
13111319
CullOpaqueKHR = 6,
13121320
CullNoOpaqueKHR = 7,
1321+
SkipBuiltinPrimitivesNV = 8,
13131322
SkipTrianglesKHR = 8,
13141323
SkipAABBsKHR = 9,
13151324
ForceOpacityMicromap2StateEXT = 10,
@@ -1327,6 +1336,7 @@ namespace Spv
13271336
CullFrontFacingTrianglesKHR = 0x00000020,
13281337
CullOpaqueKHR = 0x00000040,
13291338
CullNoOpaqueKHR = 0x00000080,
1339+
SkipBuiltinPrimitivesNV = 0x00000100,
13301340
SkipTrianglesKHR = 0x00000100,
13311341
SkipAABBsKHR = 0x00000200,
13321342
ForceOpacityMicromap2StateEXT = 0x00000400,
@@ -2142,6 +2152,19 @@ namespace Spv
21422152
OpConvertSampledImageToUNV = 5396,
21432153
OpSamplerImageAddressingModeNV = 5397,
21442154
OpRawAccessChainNV = 5398,
2155+
OpRayQueryGetIntersectionSpherePositionNV = 5427,
2156+
OpRayQueryGetIntersectionSphereRadiusNV = 5428,
2157+
OpRayQueryGetIntersectionLSSPositionsNV = 5429,
2158+
OpRayQueryGetIntersectionLSSRadiiNV = 5430,
2159+
OpRayQueryGetIntersectionLSSHitValueNV = 5431,
2160+
OpHitObjectGetSpherePositionNV = 5432,
2161+
OpHitObjectGetSphereRadiusNV = 5433,
2162+
OpHitObjectGetLSSPositionsNV = 5434,
2163+
OpHitObjectGetLSSRadiiNV = 5435,
2164+
OpHitObjectIsSphereHitNV = 5436,
2165+
OpHitObjectIsLSSHitNV = 5437,
2166+
OpRayQueryIsSphereHitNV = 5438,
2167+
OpRayQueryIsLSSHitNV = 5439,
21452168
OpSubgroupShuffleINTEL = 5571,
21462169
OpSubgroupShuffleDownINTEL = 5572,
21472170
OpSubgroupShuffleUpINTEL = 5573,

include/spirv/unified1/spirv.core.grammar.json

Lines changed: 260 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6789,6 +6789,211 @@
67896789
],
67906790
"version" : "None"
67916791
},
6792+
{
6793+
"opname" : "OpRayQueryGetIntersectionSpherePositionNV",
6794+
"class" : "Reserved",
6795+
"opcode" : 5427,
6796+
"operands" : [
6797+
{ "kind" : "IdResultType" },
6798+
{ "kind" : "IdResult" },
6799+
{
6800+
"kind" : "IdRef",
6801+
"name" : "'RayQuery'"
6802+
},
6803+
{
6804+
"kind" : "IdRef",
6805+
"name" : "'Intersection'"
6806+
}
6807+
],
6808+
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
6809+
"version" : "None"
6810+
},
6811+
{
6812+
"opname" : "OpRayQueryGetIntersectionSphereRadiusNV",
6813+
"class" : "Reserved",
6814+
"opcode" : 5428,
6815+
"operands" : [
6816+
{ "kind" : "IdResultType" },
6817+
{ "kind" : "IdResult" },
6818+
{
6819+
"kind" : "IdRef",
6820+
"name" : "'RayQuery'"
6821+
},
6822+
{
6823+
"kind" : "IdRef",
6824+
"name" : "'Intersection'"
6825+
}
6826+
],
6827+
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
6828+
"version" : "None"
6829+
},
6830+
{
6831+
"opname" : "OpRayQueryGetIntersectionLSSPositionsNV",
6832+
"class" : "Reserved",
6833+
"opcode" : 5429,
6834+
"operands" : [
6835+
{ "kind" : "IdResultType" },
6836+
{ "kind" : "IdResult" },
6837+
{
6838+
"kind" : "IdRef",
6839+
"name" : "'RayQuery'"
6840+
},
6841+
{
6842+
"kind" : "IdRef",
6843+
"name" : "'Intersection'"
6844+
}
6845+
],
6846+
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
6847+
"version" : "None"
6848+
},
6849+
{
6850+
"opname" : "OpRayQueryGetIntersectionLSSRadiiNV",
6851+
"class" : "Reserved",
6852+
"opcode" : 5430,
6853+
"operands" : [
6854+
{ "kind" : "IdResultType" },
6855+
{ "kind" : "IdResult" },
6856+
{
6857+
"kind" : "IdRef",
6858+
"name" : "'RayQuery'"
6859+
},
6860+
{
6861+
"kind" : "IdRef",
6862+
"name" : "'Intersection'"
6863+
}
6864+
],
6865+
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV"],
6866+
"version" : "None"
6867+
},
6868+
{
6869+
"opname" : "OpRayQueryGetIntersectionLSSHitValueNV",
6870+
"class" : "Reserved",
6871+
"opcode" : 5431,
6872+
"operands" : [
6873+
{ "kind" : "IdResultType" },
6874+
{ "kind" : "IdResult" },
6875+
{
6876+
"kind" : "IdRef",
6877+
"name" : "'RayQuery'"
6878+
},
6879+
{
6880+
"kind" : "IdRef",
6881+
"name" : "'Intersection'"
6882+
}
6883+
],
6884+
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
6885+
"version" : "None"
6886+
},
6887+
{
6888+
"opname" : "OpHitObjectGetSpherePositionNV",
6889+
"class" : "Reserved",
6890+
"opcode" : 5432,
6891+
"operands" : [
6892+
{ "kind" : "IdResultType"},
6893+
{ "kind" : "IdResult"},
6894+
{ "kind" : "IdRef", "name" : "'Hit Object'" }
6895+
],
6896+
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
6897+
"version" : "None"
6898+
},
6899+
{
6900+
"opname" : "OpHitObjectGetSphereRadiusNV",
6901+
"class" : "Reserved",
6902+
"opcode" : 5433,
6903+
"operands" : [
6904+
{ "kind" : "IdResultType"},
6905+
{ "kind" : "IdResult"},
6906+
{ "kind" : "IdRef", "name" : "'Hit Object'" }
6907+
],
6908+
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
6909+
"version" : "None"
6910+
},
6911+
{
6912+
"opname" : "OpHitObjectGetLSSPositionsNV",
6913+
"class" : "Reserved",
6914+
"opcode" : 5434,
6915+
"operands" : [
6916+
{ "kind" : "IdResultType"},
6917+
{ "kind" : "IdResult"},
6918+
{ "kind" : "IdRef", "name" : "'Hit Object'" }
6919+
],
6920+
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
6921+
"version" : "None"
6922+
},
6923+
{
6924+
"opname" : "OpHitObjectGetLSSRadiiNV",
6925+
"class" : "Reserved",
6926+
"opcode" : 5435,
6927+
"operands" : [
6928+
{ "kind" : "IdResultType"},
6929+
{ "kind" : "IdResult"},
6930+
{ "kind" : "IdRef", "name" : "'Hit Object'" }
6931+
],
6932+
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
6933+
"version" : "None"
6934+
},
6935+
{
6936+
"opname" : "OpHitObjectIsSphereHitNV",
6937+
"class" : "Reserved",
6938+
"opcode" : 5436,
6939+
"operands" : [
6940+
{ "kind" : "IdResultType"},
6941+
{ "kind" : "IdResult"},
6942+
{ "kind" : "IdRef", "name" : "'Hit Object'" }
6943+
],
6944+
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
6945+
"version" : "None"
6946+
},
6947+
{
6948+
"opname" : "OpHitObjectIsLSSHitNV",
6949+
"class" : "Reserved",
6950+
"opcode" : 5437,
6951+
"operands" : [
6952+
{ "kind" : "IdResultType"},
6953+
{ "kind" : "IdResult"},
6954+
{ "kind" : "IdRef", "name" : "'Hit Object'" }
6955+
],
6956+
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
6957+
"version" : "None"
6958+
},
6959+
{
6960+
"opname" : "OpRayQueryIsSphereHitNV",
6961+
"class" : "Reserved",
6962+
"opcode" : 5438,
6963+
"operands" : [
6964+
{ "kind" : "IdResultType" },
6965+
{ "kind" : "IdResult" },
6966+
{
6967+
"kind" : "IdRef",
6968+
"name" : "'RayQuery'"
6969+
},
6970+
{
6971+
"kind" : "IdRef",
6972+
"name" : "'Intersection'"
6973+
}
6974+
],
6975+
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
6976+
"version" : "None"
6977+
},
6978+
{
6979+
"opname" : "OpRayQueryIsLSSHitNV",
6980+
"class" : "Reserved",
6981+
"opcode" : 5439,
6982+
"operands" : [
6983+
{ "kind" : "IdResultType" },
6984+
{ "kind" : "IdResult" },
6985+
{
6986+
"kind" : "IdRef",
6987+
"name" : "'RayQuery'"
6988+
},
6989+
{
6990+
"kind" : "IdRef",
6991+
"name" : "'Intersection'"
6992+
}
6993+
],
6994+
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
6995+
"version" : "None"
6996+
},
67926997
{
67936998
"opname" : "OpSubgroupShuffleINTEL",
67946999
"class" : "Group",
@@ -11194,6 +11399,7 @@
1119411399
},
1119511400
{
1119611401
"enumerant" : "SkipTrianglesKHR",
11402+
"aliases" : ["SkipBuiltinPrimitivesNV"],
1119711403
"value" : "0x0100",
1119811404
"capabilities" : [ "RayTraversalPrimitiveCullingKHR" ],
1119911405
"version" : "None"
@@ -15146,6 +15352,27 @@
1514615352
"extensions" : [ "SPV_KHR_ray_tracing" ],
1514715353
"version" : "None"
1514815354
},
15355+
{
15356+
"enumerant" : "HitIsSphereNV",
15357+
"value" : 5359,
15358+
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
15359+
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
15360+
"version" : "None"
15361+
},
15362+
{
15363+
"enumerant" : "HitIsLSSNV",
15364+
"value" : 5360,
15365+
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
15366+
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
15367+
"version" : "None"
15368+
},
15369+
{
15370+
"enumerant" : "HitSpherePositionNV",
15371+
"value" : 5361,
15372+
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
15373+
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
15374+
"version" : "None"
15375+
},
1514915376
{
1515015377
"enumerant" : "WarpsPerSMNV",
1515115378
"value" : 5374,
@@ -15174,6 +15401,13 @@
1517415401
"extensions" : [ "SPV_NV_shader_sm_builtins" ],
1517515402
"version" : "None"
1517615403
},
15404+
{
15405+
"enumerant" : "HitLSSPositionsNV",
15406+
"value" : 5396,
15407+
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
15408+
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
15409+
"version" : "None"
15410+
},
1517715411
{
1517815412
"enumerant" : "HitKindFrontFacingMicroTriangleNV",
1517915413
"value" : 5405,
@@ -15186,6 +15420,20 @@
1518615420
"capabilities" : [ "RayTracingDisplacementMicromapNV" ],
1518715421
"version" : "None"
1518815422
},
15423+
{
15424+
"enumerant" : "HitSphereRadiusNV",
15425+
"value" : 5420,
15426+
"capabilities" : [ "RayTracingSpheresGeometryNV" ],
15427+
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
15428+
"version" : "None"
15429+
},
15430+
{
15431+
"enumerant" : "HitLSSRadiiNV",
15432+
"value" : 5421,
15433+
"capabilities" : [ "RayTracingLinearSweptSpheresGeometryNV" ],
15434+
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
15435+
"version" : "None"
15436+
},
1518915437
{
1519015438
"enumerant" : "ClusterIDNV",
1519115439
"value" : 5436,
@@ -16398,6 +16646,18 @@
1639816646
"extensions" : [ "SPV_NV_raw_access_chains" ],
1639916647
"version" : "None"
1640016648
},
16649+
{
16650+
"enumerant" : "RayTracingSpheresGeometryNV",
16651+
"value" : 5418,
16652+
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
16653+
"version" : "None"
16654+
},
16655+
{
16656+
"enumerant" : "RayTracingLinearSweptSpheresGeometryNV",
16657+
"value" : 5419,
16658+
"extensions" : [ "SPV_NV_linear_swept_spheres" ],
16659+
"version" : "None"
16660+
},
1640116661
{
1640216662
"enumerant" : "CooperativeMatrixReductionsNV",
1640316663
"value" : 5430,

0 commit comments

Comments
 (0)