---
title: "DxTexture"
description: "API documentation for DxTexture"
url: https://developer.disguise.one/python-api/docs/dxtexture/
---

# DxTexture

Base class (inherits properties and methods): _[Resource](/python-api/docs/resource#resource)_

Subclasses: _ProceduralTexture_

## Properties

#### **acesTransform** : _[AcesInputTransformParameters](/python-api/docs/acesinputtransformparameters#acesinputtransformparameters)_

ACES Input Display Transform (IDT)

_UserName: Input transform_

#### **bpp** : _int_ _(Read-Only)_

#### **etf** : _[ExtendedTextureFormat](/python-api/docs/extendedtextureformat#extendedtextureformat)_ _(Read-Only)_

#### **name** : _str_ _(Read-Only)_

#### **ocioShaderProperties** : _[OcioShaderProperties](/python-api/docs/ocioshaderproperties#ocioshaderproperties)_

_UserName: Ocio shader properties_

#### **ocioTransform** : _[OcioColourSpace](/python-api/docs/ociocolourspace#ociocolourspace)_

OCIO Input Display Transform (IDT)

_UserName: Input transform_

#### **size** : _[Int2](/python-api/docs/int2#int2)_ _(Read-Only)_

## Variables

#### **ETF\_NONE** : _Final\[[ExtendedTextureFormat](/python-api/docs/extendedtextureformat#extendedtextureformat)\]_ = ExtendedTextureFormat.ETF\_NONE

#### **formatStrings** : _List\[str\]_

## Methods

#### **beginWritingPixels**(self)

#### **blitToFormat**(self, fmt: _[ExtendedTextureFormat](/python-api/docs/extendedtextureformat#extendedtextureformat)_) -> _[DxTexture](/python-api/docs/dxtexture#dxtexture)_

#### **clear**(self, c: _[Colour](/python-api/docs/colour#colour) | [Col](/python-api/docs/col#col) | [HDRColour](/python-api/docs/hdrcolour#hdrcolour)_)

#### **deletePixels**(self)

#### **download**(self, bResolve: _bool_)

#### **forceUpload**(self)

#### **getScaleMatrix**(self) -> _[Mat](/python-api/docs/mat#mat)_

#### **hasPixels**(self, yesNo: _bool_)

#### **load**(self, x: _int_, y: _int_) -> _[Colour](/python-api/docs/colour#colour)_

#### **resize**(self, size: _[Int2](/python-api/docs/int2#int2) | [Vec2](/python-api/docs/vec2#vec2)_)

#### **resizeNoPixels**(self, size: _[Int2](/python-api/docs/int2#int2) | [Vec2](/python-api/docs/vec2#vec2)_)

#### **resizeTarget**(self, size: _[Int2](/python-api/docs/int2#int2) | [Vec2](/python-api/docs/vec2#vec2)_, etf: _[ExtendedTextureFormat](/python-api/docs/extendedtextureformat#extendedtextureformat)_, msaaMode: _[MsaaMode](/python-api/docs/msaamode#msaamode)_, 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.

#### **saveFile**(self, path: _str_)

#### **store**(self, x: _int_, y: _int_, colour: _[Colour](/python-api/docs/colour#colour) | [Col](/python-api/docs/col#col) | [HDRColour](/python-api/docs/hdrcolour#hdrcolour)_)
