Struct TextureDesc
Descriptor used to create texture resources
Inherited Members
Namespace: UnityEngine.Experimental.Rendering.RenderGraphModule
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public struct TextureDesc
Constructors
| Name | Description |
|---|---|
| TextureDesc(int, int, bool, bool) | TextureDesc constructor for a texture using explicit size |
| TextureDesc(TextureDesc) | Copy constructor |
| TextureDesc(ScaleFunc, bool, bool) | TextureDesc constructor for a texture using a functor for scaling |
| TextureDesc(Vector2, bool, bool) | TextureDesc constructor for a texture using a fixed scaling |
Fields
| Name | Description |
|---|---|
| anisoLevel | Anisotropic filtering level. |
| autoGenerateMips | Automatically generate mip maps. |
| bindTextureMS | Bind texture multi sampled. |
| clearBuffer | Texture needs to be cleared on first use. |
| clearColor | Clear color. |
| colorFormat | Color format. |
| depthBufferBits | Depth buffer bit depth. |
| dimension | Texture dimension. |
| disableFallBackToImportedTexture | If all passes writing to a texture are culled by Dynamic Render Pass Culling, it will automatically fallback to a similar preallocated texture.\n Set this to false to force the allocation. |
| enableRandomWrite | Enable random UAV read/write on the texture. |
| fallBackToBlackTexture | Determines whether the texture will fallback to a black texture if it is read without ever writing to it. |
| fastMemoryDesc | Descriptor to determine how the texture will be in fast memory on platform that supports it. |
| filterMode | Filtering mode. |
| func | Texture scale function. |
| height | Texture height. |
| isShadowMap | Texture is a shadow map. |
| memoryless | Memory less flag. |
| mipMapBias | Mip map bias. |
| msaaSamples | Number of MSAA samples. |
| name | Texture name. |
| scale | Texture scale. |
| sizeMode | Texture sizing mode. |
| slices | Number of texture slices.. |
| useDynamicScale | Texture uses dynamic scaling. |
| useMipMap | Texture needs mip maps. |
| vrUsage | Special treatment of the VR eye texture used in stereoscopic rendering. |
| width | Texture width. |
| wrapMode | Addressing mode. |
Methods
| Name | Description |
|---|---|
| GetHashCode() | Hash function |