Expand description
A GPU program is a collection of shaders that are linked together so that they can run on the GPU to control how rendering is performed.
Structs§
- Shader
Property - A uniform value that is supplied to a shader by a material.
- Shader
Resource Definition - Shader resource definition.
Enums§
- Sampler
Fallback - A fallback value for the sampler.
- Sampler
Kind - A sampler represents how the data of a texture is accessed, and different kinds of samplers are intended for different kinds of textures.
- Shader
Kind - A shader can be either a fragment shader that produces pixels or a vertex shader that controls where triangles are drawn on the screen.
- Shader
Property Kind - A data type and default value for a uniform within a shader.
When a material supplies an actual value, it is done using a
MaterialPropertyvalue from thefyrox-materialcrate. - Shader
Resource Kind - Shader property with default value.
Traits§
- GpuProgram
AsAny - A base trait that provides useful methods for trait downcasting.
- GpuProgram
Trait - A trait for whatever objects a graphics server is using to represent programs.
There are no methods because all interactions with programs are done through the server,
such as with
crate::server::GraphicsServer::create_programandcrate::framebuffer::GpuFrameBufferTrait::draw. - GpuShader
AsAny - A base trait that provides useful methods for trait downcasting.
- GpuShader
Trait - A trait for whatever objects a graphics server is using to represent shaders.
There are no methods because all interactions with programs are done through the server,
such as with
crate::server::GraphicsServer::create_shader.