Interface: CameraShaderBindings
Defined in: src/webgpu/cameraShaderBindings.ts:61
Everything a fragment shader needs to sample the live camera. Build once at setup with createCameraShaderBindings; the fields are safe to capture into the frame worklet.
Properties​
bindGroupIndex​
readonlybindGroupIndex:number
Defined in: src/webgpu/cameraShaderBindings.ts:77
The group index the bindings are declared at.
bindGroupLayout​
readonlybindGroupLayout:GPUBindGroupLayout
Defined in: src/webgpu/cameraShaderBindings.ts:73
Layout of the camera bind group; place it at bindGroupIndex in your pipeline layout.
bindingDeclarations​
readonlybindingDeclarations:string
Defined in: src/webgpu/cameraShaderBindings.ts:71
WGSL declaring the camera texture_external and sampler at bindGroupIndex. TypeGPU
cannot emit an external-texture binding, so prepend this to the WGSL your shader resolves to.
sampleCamera​
readonlysampleCamera:TgpuFn<(uv) =>Vec4f>
Defined in: src/webgpu/cameraShaderBindings.ts:66
The camera sampler as a TypeGPU function — call sampleCamera(uv) from your TGSL fragment
shader. Same value as the exported sampleCamera.
sampler​
readonlysampler:GPUSampler
Defined in: src/webgpu/cameraShaderBindings.ts:75
The linear-filtering sampler bound at binding 1.