- Migrate from set_global/get_global to ctx_set/ctx_get - Replace if-else chains with match() expressions - Update inline pointer handling patterns - Improve GfxWorld and asset parsing structures - Clean up redundant code across 60+ definition files Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
16 lines
440 B
Plaintext
16 lines
440 B
Plaintext
type materialvertexshader [display="Material Vertex Shader"]
|
|
{
|
|
const PTR_INLINE = -1;
|
|
|
|
i32 shader_name_ptr;
|
|
ui("shader_name_ptr", "Shader Name Ptr");
|
|
|
|
// Vertex shader program (parse header first)
|
|
program = parse_here("materialvertexshaderprogram");
|
|
|
|
// Inline data
|
|
inline cstring shader_name when shader_name_ptr [ui="Shader Name", set_name];
|
|
|
|
// Note: LoadDef program data parsing happens in materialvertexshaderprogram
|
|
}
|