2026-01-01 22:18:40 -05:00
|
|
|
type materialargumentdef [display="Material Argument Def"]
|
|
|
|
|
{
|
2026-01-07 16:36:40 -05:00
|
|
|
// MaterialArgumentDef is a 4-byte union on PC:
|
|
|
|
|
// - float* literalConst (pointer)
|
|
|
|
|
// - MaterialArgumentCodeConst codeConst (u16 index + u16 firstRow)
|
|
|
|
|
// - u32 codeSampler
|
|
|
|
|
// - u32 nameHash
|
|
|
|
|
// We just read it as raw bytes since interpretation depends on arg type
|
|
|
|
|
value = read(4) [ui, readonly, display="Value"];
|
2026-01-01 22:18:40 -05:00
|
|
|
}
|