Function generateTextureBuiltinInputs2D
- generateTextureBuiltinInputs2D(...args): {
arrayIndex?: number;
bias?: number;
component?: number;
coords: vec2;
ddx?: vec2;
ddy?: vec2;
depthRef?: number;
derivativeMult?: vec2;
mipLevel: number;
offset?: vec2;
sampleIndex?: number;
}[] Parameters
Rest
...args: [n: number, args: TextureBuiltinInputArgs & {
method: "texel-centre";
} | TextureBuiltinInputArgs & {
loops?: number;
method: "spiral";
radius?: number;
}]
Returns {
arrayIndex?: number;
bias?: number;
component?: number;
coords: vec2;
ddx?: vec2;
ddy?: vec2;
depthRef?: number;
derivativeMult?: vec2;
mipLevel: number;
offset?: vec2;
sampleIndex?: number;
}[]