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.
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
| Slot | Direction | Type | |
|---|---|---|---|
input | input | TEXTURE | |
out | output | TEXTURE |
Parameters
common
| Name | Type | Default | Range | Doc |
|---|---|---|---|---|
width | int | 0 | 0 … 8192 | Texture size in pixels; 0 follows the first wired texture input. A node that makes its own frames follows the patch's default instead. |
height | int | 0 | 0 … 8192 | Texture 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.
/* 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);
}