pub struct RuntimeInfo {
pub stage_words: [u32; 4],
pub min_wave_lanes: u32,
pub max_wave_lanes: u32,
pub stage: u8,
pub uses_view_id: bool,
pub stage_data: u16,
pub element_counts: [u8; 3],
pub input_vectors: u8,
pub output_vectors: [u8; 4],
pub num_threads: Option<[u32; 3]>,
pub entry_name: Option<u32>,
}Expand description
The runtime information of a PSV0 part.
Fields§
§stage_words: [u32; 4]The stage-dependent 16 bytes, as four words (see the module documentation).
min_wave_lanes: u32The smallest wave lane count the program expects (0 where it states none).
max_wave_lanes: u32The largest wave lane count the program expects (u32::MAX where it states none).
stage: u8The shader kind (0 pixel, 1 vertex, 2 geometry, 3 hull, 4 domain, 5 compute, 13 mesh, …), as in the program header.
uses_view_id: boolThe program uses SV_ViewID.
stage_data: u16A geometry program’s largest output vertex count; in the low byte a hull or domain program’s patch-constant vector count.
element_counts: [u8; 3]The input, output and patch-constant element counts as stored (the lengths of Psv::inputs and the others).
input_vectors: u8How many input vectors (registers) the program reads.
output_vectors: [u8; 4]How many output vectors it writes, per stream.
num_threads: Option<[u32; 3]>The thread group size, from 48 bytes of runtime info.
entry_name: Option<u32>The offset of the entry point’s name in the string table, from 52 bytes of runtime info.