pub struct Statistics {
pub words: Vec<u32>,
}Expand description
The counters of a STAT part, as stored.
Fields§
§words: Vec<u32>Every word of the part.
Implementations§
Source§impl Statistics
impl Statistics
Sourcepub fn instructions(&self) -> Option<u32>
pub fn instructions(&self) -> Option<u32>
Word 0: the program’s instructions, declarations not counted (equal to the decoder’s instruction count in all 466 containers that have the part and decode).
Sourcepub fn temp_registers(&self) -> Option<u32>
pub fn temp_registers(&self) -> Option<u32>
Word 1: the temporary registers: the largest dcl_temps of the program (a hull program declares them once a
phase), the only one in the other stages; equal to the decoder’s in the same 466 containers and the fixtures.
Sourcepub fn declarations(&self) -> Option<u32>
pub fn declarations(&self) -> Option<u32>
Word 3: the declarations (D3D11_SHADER_DESC::DclCount). It is not a simple sum of the declaration opcodes.
Sourcepub fn float_instructions(&self) -> Option<u32>
pub fn float_instructions(&self) -> Option<u32>
Word 4: the floating-point instructions.
Sourcepub fn int_instructions(&self) -> Option<u32>
pub fn int_instructions(&self) -> Option<u32>
Word 5: the signed-integer instructions.
Sourcepub fn uint_instructions(&self) -> Option<u32>
pub fn uint_instructions(&self) -> Option<u32>
Word 6: the unsigned-integer instructions.
Sourcepub fn static_flow_control(&self) -> Option<u32>
pub fn static_flow_control(&self) -> Option<u32>
Word 7: the static flow control instructions.
Sourcepub fn dynamic_flow_control(&self) -> Option<u32>
pub fn dynamic_flow_control(&self) -> Option<u32>
Word 8: the dynamic flow control instructions.
Sourcepub fn texture_normal(&self) -> Option<u32>
pub fn texture_normal(&self) -> Option<u32>
Word 14: the texture instructions that sample normally (sample, gather4, …).
Sourcepub fn texture_load(&self) -> Option<u32>
pub fn texture_load(&self) -> Option<u32>
Word 15: the texture load instructions.
Sourcepub fn texture_comparison(&self) -> Option<u32>
pub fn texture_comparison(&self) -> Option<u32>
Word 16: the comparison texture instructions.
Sourcepub fn texture_gradient(&self) -> Option<u32>
pub fn texture_gradient(&self) -> Option<u32>
Word 18: the instructions that sample with explicit gradients (sample_d; equal to the decoder’s count in the
same 466 containers).
Sourcepub fn movc_instructions(&self) -> Option<u32>
pub fn movc_instructions(&self) -> Option<u32>
Word 20: the movc instructions (equal to the decoder’s count of them in all 466 containers that have the part
and decode, the 21 small programs among them).
Sourcepub fn sample_frequency(&self) -> Option<u32>
pub fn sample_frequency(&self) -> Option<u32>
Word 28: 1 for a pixel program that runs once per sample (an input interpolated per sample, or the sample index), 0 otherwise; the disassembler’s “runs at sample frequency” note follows it.
Sourcepub fn control_points(&self) -> Option<u32>
pub fn control_points(&self) -> Option<u32>
Word 30: a hull program’s output control points, a domain program’s input control points.
Sourcepub fn tessellator_output_primitive(&self) -> Option<u32>
pub fn tessellator_output_primitive(&self) -> Option<u32>
Word 31: a hull program’s tessellator output primitive (D3D_TESSELLATOR_OUTPUT_PRIMITIVE: 1 point, 2 line, 3
clockwise triangles, 4 counter-clockwise).
Sourcepub fn tessellator_partitioning(&self) -> Option<u32>
pub fn tessellator_partitioning(&self) -> Option<u32>
Word 32: a hull program’s tessellator partitioning (D3D_TESSELLATOR_PARTITIONING: 1 integer, 2 power of two,
3 odd fractional, 4 even fractional).
Sourcepub fn tessellator_domain(&self) -> Option<u32>
pub fn tessellator_domain(&self) -> Option<u32>
Word 33: the tessellator domain of a hull or domain program (D3D_TESSELLATOR_DOMAIN: 1 isoline, 2 triangle,
3 quad).