GpuStageDescriptor¶
Import: import system.gpu;
This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation. Shader-only declarations can be used only inside @compute, @vertex, @fragment, inferred helpers and ray tracing shader functions; using them elsewhere is a compile error.
GpuStageDescriptor¶
A compiled render or ray tracing shader: @vertex, @fragment, @ray_generation, @closest_hit, @any_hit, @miss, @intersection or @callable. The shader generator creates one for every such shader as GpuShaders.<name>; pass it to GpuDevice.render_pipeline or GpuDevice.ray_tracing_pipeline.
name¶
The shader function's name.
stage¶
The stage the shader runs in.