goofi v3.0.0

Window

show this texture in a window on the machine goofi runs on

The window is the frame's own size — set common/width and height to resize it. It stays a normal node: its output is the same texture, so a viewer or another node can read it too.

Window wgsl
input
out
Type name
graphics:Window
Plane
graphics
Tags
imageoutput
Language
wgsl
Tier
shader
Bundle
graphics
Source
node-bundles/graphics/Window.wgsl
Availability
available

Slots

SlotDirectionType
inputinputTEXTURE
outoutputTEXTURE

Parameters

common

NameTypeDefaultRangeDoc
widthint00 … 8192Texture size in pixels; 0 follows the first wired texture input. A node that makes its own frames follows the patch's default instead.
heightint00 … 8192Texture size in pixels; 0 follows the first wired texture input. A node that makes its own frames follows the patch's default instead.

Source

The current source of this node, as it stands in the goofi repository at node-bundles/graphics/Window.wgsl.

node-bundles/graphics/Window.wgsl
/* goofi
{ "doc": "show this texture in a window on the machine goofi runs on\nThe window is the frame's own size — set common/width and height to resize it. It stays a normal node: its output is the same texture, so a viewer or another node can read it too.",
  "tags": ["image", "output"],
  "inputs": [{"name": "input", "kind": "TEXTURE"}],
  "window": true }
*/
fn shade(uv: vec2f) -> vec4f {
    return textureSample(input, samp, uv);
}

← All nodes