https://github.com/shader-slang/slang
Raw File
Tip revision: 5deb82929d289d6341e1919ee95b18b10f6db789 authored by Yong He on 02 February 2022, 04:00:55 UTC
GFX: Add API interception mechanism for pipeline creation. (#2115)
Tip revision: 5deb829
miss.slang
//TEST:CROSS_COMPILE: -profile glsl_460+GL_EXT_ray_tracing -stage miss -entry main -target spirv-assembly

struct ShadowRay
{
    float hitDistance;
};

void main(in out ShadowRay ray)
{
	ray.hitDistance = 10000.0f;
}
back to top