Skip to main content

parameter_blob

Function parameter_blob 

Source
pub fn parameter_blob(entry: &[u8]) -> Result<Parameters>
Expand description

A variant’s own parameters as a 2021.2 player stores them in the blob entry m_ParameterBlobIndices names: the magic word, a count of the constant buffers plus one, four zero words, then each constant buffer (name, size, its fields, its structs: name, offset, array size, size and fields) and a list of entries, each a name, a kind and a slot: kind 0 a texture (the sampler slot, u32::MAX for none, and a dimension word), kind 1 a constant buffer’s binding (a word, 0), kind 4 a sampler (its packed state; the name is empty). The layout was held to every one of the 3,280 entries of Sledding Game’s level1 shaders (3,272 read to the last byte; the 8 refused hold a kind 2, a structured buffer of the DOTS instancing, whose payload is not read).