Skip to main content

Module gpu_program

Module gpu_program 

Source
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§

ShaderProperty
A uniform value that is supplied to a shader by a material.
ShaderResourceDefinition
Shader resource definition.

Enums§

SamplerFallback
A fallback value for the sampler.
SamplerKind
A sampler represents how the data of a texture is accessed, and different kinds of samplers are intended for different kinds of textures.
ShaderKind
A shader can be either a fragment shader that produces pixels or a vertex shader that controls where triangles are drawn on the screen.
ShaderPropertyKind
A data type and default value for a uniform within a shader. When a material supplies an actual value, it is done using a MaterialProperty value from the fyrox-material crate.
ShaderResourceKind
Shader property with default value.

Traits§

GpuProgramAsAny
A base trait that provides useful methods for trait downcasting.
GpuProgramTrait
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_program and crate::framebuffer::GpuFrameBufferTrait::draw.
GpuShaderAsAny
A base trait that provides useful methods for trait downcasting.
GpuShaderTrait
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.