type gfxtexture ui("GFX Texture") { const PTR_INLINE = -1; const PTR_INLINE_STREAMING = -2; // GfxTexture is a union of different texture types // For inline data (-1 or -2), parse load def i32 base_map_ptr ui("Base Map Ptr"); if (base_map_ptr == PTR_INLINE || base_map_ptr == PTR_INLINE_STREAMING) { load_def = parse_here("gfximageloaddef"); } }