mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
3f02132668
* Add support for GL_NV_displacement_micromap. * Update known_good for spirv-headers and spirv-tools.
21 lines
783 B
Plaintext
21 lines
783 B
Plaintext
#version 460
|
|
#extension GL_NV_displacement_micromap : enable
|
|
#extension GL_NV_mesh_shader : enable
|
|
#extension GL_EXT_ray_query : enable
|
|
layout(max_vertices = 8, max_primitives = 16, triangles) out;
|
|
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));
|
|
}
|