pub struct Declaration {
pub word: usize,
pub opcode: u16,
pub control: u32,
pub kind: Declared,
}Expand description
A declaration, typed. word is where it starts.
Fields§
§word: usizeThe word of the token stream the declaration starts at.
opcode: u16The opcode token’s low 11 bits (see opcode_name).
control: u32The opcode token’s bits 11 to 23 as stored.
kind: DeclaredThe declaration, typed.
Implementations§
Source§impl Declaration
impl Declaration
Sourcepub fn global_flags(&self) -> Option<GlobalFlags>
pub fn global_flags(&self) -> Option<GlobalFlags>
The flags of a dcl_globalFlags declaration; None for any other declaration.
Sourcepub fn geometry_input_primitive(&self) -> Option<u32>
pub fn geometry_input_primitive(&self) -> Option<u32>
A geometry program’s input primitive (dcl_inputprimitive; a D3D_PRIMITIVE: 1 point, 2 line, 3 triangle, 6 line
and 7 triangle with adjacency).
Sourcepub fn geometry_output_topology(&self) -> Option<u32>
pub fn geometry_output_topology(&self) -> Option<u32>
A geometry program’s output topology (dcl_outputtopology; a D3D_PRIMITIVE_TOPOLOGY: 1 point list, 3 line strip,
5 triangle strip).
Sourcepub fn max_output_vertex_count(&self) -> Option<u32>
pub fn max_output_vertex_count(&self) -> Option<u32>
A geometry program’s largest vertex count (dcl_maxout).
Sourcepub fn input_control_point_count(&self) -> Option<u32>
pub fn input_control_point_count(&self) -> Option<u32>
A hull or domain program’s input control point count (dcl_input_control_point_count).
Sourcepub fn output_control_point_count(&self) -> Option<u32>
pub fn output_control_point_count(&self) -> Option<u32>
A hull program’s output control point count (dcl_output_control_point_count).
Sourcepub fn tessellator_domain(&self) -> Option<u32>
pub fn tessellator_domain(&self) -> Option<u32>
The tessellator domain (dcl_tessellator_domain; a D3D11_TESSELLATOR_DOMAIN: 1 isoline, 2 triangle, 3 quad).
Sourcepub fn tessellator_partitioning(&self) -> Option<u32>
pub fn tessellator_partitioning(&self) -> Option<u32>
The tessellator partitioning (dcl_tessellator_partitioning; a D3D11_TESSELLATOR_PARTITIONING: 1 integer, 2 pow2,
3 fractional odd, 4 fractional even).
Sourcepub fn tessellator_output_primitive(&self) -> Option<u32>
pub fn tessellator_output_primitive(&self) -> Option<u32>
The tessellator output primitive (dcl_tessellator_output_primitive; a D3D11_TESSELLATOR_OUTPUT_PRIMITIVE: 1
point, 2 line, 3 triangle clockwise, 4 triangle counter-clockwise).
Sourcepub fn hull_max_tess_factor(&self) -> Option<f32>
pub fn hull_max_tess_factor(&self) -> Option<f32>
A hull program’s largest tessellation factor (dcl_hs_max_tessfactor).
Sourcepub fn fork_phase_instance_count(&self) -> Option<u32>
pub fn fork_phase_instance_count(&self) -> Option<u32>
The instance count of a hull program’s fork phase (dcl_hs_fork_phase_instance_count).
Sourcepub fn join_phase_instance_count(&self) -> Option<u32>
pub fn join_phase_instance_count(&self) -> Option<u32>
The instance count of a hull program’s join phase (dcl_hs_join_phase_instance_count).