Core Docs vulfram-core@0.16

CmdTextureCreateSolidColor

Creates a 1x1 texture with a solid color.

Arguments

Field Type Description
windowId u32 ID of the window
textureId u32 Unique ID for the texture
label Option (Optional) Semantic name
color Vec4 Color in RGBA
srgb Option (Optional) Use sRGB (default: true)
mode TextureCreateMode (Optional) "standalone" or "forward-atlas" (default: "standalone")
atlasOptions Option (Optional) Options for atlas allocation

ForwardAtlasOptions

  • tilePx: u32 (tile size in pixels, default: 256)
  • layers: u32 (atlas layers, default: 1)

Response

Returns CmdResultTextureCreateSolidColor:

Field Type Description
success bool Whether the texture was created
message String Status or error message
Documentation Vulfram Core