DxTexture
Properties
acesTransform : AcesInputTransformParameters
ACES Input Display Transform (IDT)
UserName: Input transform
bpp : int (Read-Only)
etf : int (Read-Only)
name : str (Read-Only)
ocioShaderProperties : OcioShaderProperties
UserName: Ocio shader properties
ocioTransform : OcioColourSpace
OCIO Input Display Transform (IDT)
UserName: Input transform
size : Int2 (Read-Only)
Variables
ETF_NONE : Final[int] = 0
formatStrings : List[str]
Methods
beginWritingPixels(self)
blitToFormat(self, fmt: int) -> DxTexture
clear(self, c: Colour)
deletePixels(self)
download(self, bResolve: bool)
forceUpload(self)
getScaleMatrix(self) -> Mat
hasPixels(self, yesNo: bool)
load(self, x: int, y: int) -> Colour
resize(self, size: Int2)
resizeNoPixels(self, size: Int2)
resizeTarget(self, size: Int2, etf: int, msaaMode: int, allocFlags: int, sliceCount: int, mipCount: int = False)
Allocates (or reallocates) this texture as a render target on the GPU.
Creates the underlying ID3D11Texture2D with D3D11_BIND_RENDER_TARGET |
D3D11_BIND_SHADER_RESOURCE flags. Also creates RTV and SRV handles.
This is the primary entry point for creating textures that DxRenderer
can target.
Parameters:
- size: Dimensions in pixels.
- etf: Pixel format (RGBA8, RGBA16F, etc.).
- msaaMode: Multisampling mode (MSAA_NONE by default).
- allocFlags: Additional allocation flags from DxTexDescriptor.
- sliceCount: Number of array slices (1 for non-array textures).
- mipCount: Number of mip levels.