https://github.com/shader-slang/slang
Raw File
Tip revision: 81ce78d08a7e3fbe74f2fd41c5a258ea4b078245 authored by Tim Foley on 06 August 2019, 19:14:52 UTC
Add support for the HLSL "cast from zero" idiom (#1008)
Tip revision: 81ce78d
miss.slang
//TEST:CROSS_COMPILE: -profile sm_6_3 -stage miss -entry main -target spirv-assembly

struct ShadowRay
{
    float hitDistance;
};

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