Readonly bytesGenerates the bytes for the texel at the given coordinates.
Readonly colorGenerates the color for the texel at the given coordinates.
Readonly formatThe GPUTextureFormat of the TexelView.
Readonly ulpGenerates the ULPs-from-zero for the texel at the given coordinates.
Returns a pretty table string of the given coordinates and their values.
Writes the contents of a TexelView as "linear image data", i.e. the writeTexture format.
Optional sampleStatic fromProduces a TexelView from a generator of bytes for individual texel blocks.
Static fromProduces a TexelView from a generator of numeric "color" values for each texel.
Optional clampStatic fromProduces a TexelView from "linear image data", i.e. the writeTexture format. Takes a
reference to the input subrectData, so any changes to it will be visible in the TexelView.
Optional sampleGenerated using TypeDoc
Wrapper to view various representations of texture data in other ways. E.g., can:
MAINTENANCE_TODO: Would need some refactoring to support block formats, which could be partially supported if useful.