pub enum StateParam {
Projected(u32),
TextureDim(u32),
BumpEnvMat(u32),
BumpLScale(u32),
BumpLOffset(u32),
}Expand description
A piece of pipeline state a program reads (Op::LoadState), by the stage or unit it belongs to. A known one is
folded into literals by specialisation; an unknown numeric one is carried in a state block the binding plan
places; an unknown one that changes types (a texture’s dimension) has no uniform form.
Variants§
Projected(u32)
Whether texture stage n divides its coordinate by its last lane before sampling (D3D9’s
D3DTTFF_PROJECTED): a bool.
TextureDim(u32)
The dimension of the texture bound to stage n (what D3D9’s ps_1_x tex samples): a u32, the
TextureDim::state_code of it. It changes the type of the sample, so only specialisation lowers it.
BumpEnvMat(u32)
Stage n’s bump environment matrix (D3D9’s D3DTSS_BUMPENVMAT00, 01, 10, 11, in that order): a
vec4<f32>.
BumpLScale(u32)
Stage n’s bump luminance scale (D3D9’s D3DTSS_BUMPENVLSCALE): an f32.
BumpLOffset(u32)
Stage n’s bump luminance offset (D3D9’s D3DTSS_BUMPENVLOFFSET): an f32.
Implementations§
Trait Implementations§
Source§impl Clone for StateParam
impl Clone for StateParam
Source§fn clone(&self) -> StateParam
fn clone(&self) -> StateParam
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more