API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceTextureUploadOptions

@codexo/exojs / rendering / stable

How a texture's source content is interpreted on its way to the GPU. Unlike SamplerOptions, these belong to the texture itself: they decide what ends up in GPU memory, so changing one requires a re-upload rather than a different sampler.

3
props
0
methods
0
events
Import
import { TextureUploadOptions } from '@codexo/exojs'

How a texture's source content is interpreted on its way to the GPU.

Unlike SamplerOptions, these belong to the texture itself: they decide what ends up in GPU memory, so changing one requires a re-upload rather than a different sampler.

Properties3
flipY: boolean
Whether the source content is stored bottom-up. Resolved when UVs are packed rather than by flipping pixels at upload time, so it costs nothing per frame but does invalidate geometry recorded against the old value.
generateMipMap: boolean
Whether to generate a full mipmap chain after upload.
premultiplyAlpha: boolean
Whether pixel values are premultiplied by their alpha before uploading to the GPU.
Source