{"id":"graphics.canvas--NativeImageSamplingSupportFlagsV1","name":"NativeImageSamplingSupportFlagsV1","owner":"yeho","package":"graphics.canvas","kind":"function","signature":"external NativeImageSamplingSupportFlagsV1() returns int","description":"Runtime discovery: 1=active context, 2=native linear sampling is available with explicit edge clamping. Native linear is a provider acceleration, not the cross-device exact software sampling contract.","context":"Draw 2D shapes, text, images, and composited interface content.","parameters":[],"returns":"int","members":[],"tags":["canvas","cpu","function","graphics","graphics.canvas","source-example","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/graphics/canvas/canvas.yh","line":147,"sha256":"6ccd4ec500a65b2f8a7447e335a0f6661c8b064e12be567abc0974e818716f45"},"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 NativeImageSamplingSupportFlagsV1","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using graphics.canvas\n\n// Draw 2D shapes, text, images, and composited interface content.\nint result = NativeImageSamplingSupportFlagsV1()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_canvas__nativeimagesamplingsupportflagsv1\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.canvas\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/canvas\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"29b08ecd79773b5954ea76a9079e4a3b24a321616794e1379c6e6fa92ac750d8","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.canvas--NativeImageSamplingSupportFlagsV1","json":"https://demonhunterlabs.com/reference/items/graphics.canvas--NativeImageSamplingSupportFlagsV1.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.canvas--NativeImageSamplingSupportFlagsV1.md"}
