Skip to content

Types

FrameBufferOptions ​

Defined in: createFrameBuffer.js:4

Options for createFrameBuffer.

Properties ​

PropertyTypeDescription
data?ArrayBufferView<ArrayBufferLike> | nullInitial pixels. Defaults to null.
depth?booleanAdd a depth buffer, for depth testing while drawing into it. Defaults to false.
format?numberThe texture format. Defaults to gl.RGBA.
heightnumberHeight in pixels.
internalFormat?numberThe internal format. Picked for float types, e.g. gl.RGBA16F for gl.HALF_FLOAT; gl.RGBA otherwise.
magFilter?numberThe magnification filter. Defaults to minFilter.
minFilter?numberThe minification filter. Defaults to gl.LINEAR (gl.NEAREST for 32-bit float where linear filtering isn't supported).
mips?booleanGenerate mipmaps. Defaults to false.
singular?booleanOnly make read, with no write to swap with. Defaults to false.
tiling?numberThe wrap mode in both directions. Defaults to gl.CLAMP_TO_EDGE.
type?numbergl.FLOAT or gl.HALF_FLOAT for a float target. Defaults to gl.UNSIGNED_BYTE.
widthnumberWidth in pixels.