Add support for GL_NV_displacement_micromap.
* Add support for GL_NV_displacement_micromap. * Update known_good for spirv-headers and spirv-tools.
This commit is contained in:
parent
86151772b2
commit
3f02132668
23 changed files with 838 additions and 11 deletions
19
Test/spv.nv.dmm-allops.comp
Normal file
19
Test/spv.nv.dmm-allops.comp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#version 460
|
||||
#extension GL_NV_displacement_micromap : enable
|
||||
#extension GL_EXT_ray_query : enable
|
||||
layout(local_size_x = 16) in;
|
||||
layout(binding = 1) uniform accelerationStructureEXT as;
|
||||
layout(binding = 0) buffer block {
|
||||
vec3 op_pos;
|
||||
vec2 op_bary;
|
||||
};
|
||||
void main()
|
||||
{
|
||||
op_pos = fetchMicroTriangleVertexPositionNV(as, 1, 1, 1, ivec2(0,0));
|
||||
op_pos += fetchMicroTriangleVertexPositionNV(as, 1, 1, 1, ivec2(0,1));
|
||||
op_pos += fetchMicroTriangleVertexPositionNV(as, 1, 1, 1, ivec2(1,0));
|
||||
|
||||
op_bary = fetchMicroTriangleVertexBarycentricNV(as, 1, 1, 1, ivec2(0,0));
|
||||
op_bary += fetchMicroTriangleVertexBarycentricNV(as, 1, 1, 1, ivec2(0,1));
|
||||
op_bary += fetchMicroTriangleVertexBarycentricNV(as, 1, 1, 1, ivec2(1,0));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue