{"id":"ui--CreateYuiRenderTargetColorCapabilityV1","name":"CreateYuiRenderTargetColorCapabilityV1","owner":"yeho","package":"ui","kind":"function","signature":"external CreateYuiRenderTargetColorCapabilityV1(text format, text colorSpace, text transfer, text alphaMode, text blendSpace, bool textureSrgbEnforced, bool framebufferSrgbEnforced, bool translucentFinalSurface, bool offscreenComposition, text source) returns yuiRenderTargetColorCapabilityV1","description":"Create yui render target color capability v1 from the supplied values.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[{"name":"format","type":"text","description":"Supply format as text."},{"name":"colorSpace","type":"text","description":"Supply color space as text."},{"name":"transfer","type":"text","description":"Supply transfer as text."},{"name":"alphaMode","type":"text","description":"Supply alpha mode as text."},{"name":"blendSpace","type":"text","description":"Supply blend space as text."},{"name":"textureSrgbEnforced","type":"bool","description":"Supply texture srgb enforced as bool."},{"name":"framebufferSrgbEnforced","type":"bool","description":"Supply framebuffer srgb enforced as bool."},{"name":"translucentFinalSurface","type":"bool","description":"Supply translucent final surface as bool."},{"name":"offscreenComposition","type":"bool","description":"Supply offscreen composition as bool."},{"name":"source","type":"text","description":"Supply source as text."}],"returns":"yuiRenderTargetColorCapabilityV1","members":[],"tags":["cpu","function","source-example","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/render-00-definitions.yh","line":909,"sha256":"ffe87f06297c002c1b58e5728706712c19229c0c62ccc6729603984094373b51"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use CreateYuiRenderTargetColorCapabilityV1","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using ui\n\n// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.\ntext format = \"png\"\ntext colorSpace = \"color Space\"\ntext transfer = \"transfer\"\ntext alphaMode = \"alpha Mode\"\ntext blendSpace = \"blend Space\"\nbool textureSrgbEnforced = true\nbool framebufferSrgbEnforced = true\nbool translucentFinalSurface = true\nbool offscreenComposition = true\ntext source = \"example\"\nyuiRenderTargetColorCapabilityV1 result = CreateYuiRenderTargetColorCapabilityV1(format, colorSpace, transfer, alphaMode, blendSpace, textureSrgbEnforced, framebufferSrgbEnforced, translucentFinalSurface, offscreenComposition, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__createyuirendertargetcolorcapabilityv1\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"95a9e31370abf9a78a093ac84f70a5b18c61055c8fa57d1d62b8a6763390ad59","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=ui--CreateYuiRenderTargetColorCapabilityV1","json":"https://demonhunterlabs.com/reference/items/ui--CreateYuiRenderTargetColorCapabilityV1.json","markdown":"https://demonhunterlabs.com/reference/text/ui--CreateYuiRenderTargetColorCapabilityV1.md"}
