csharp
public readonly record struct TextureDescriptionWhat to create a texture as.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (12)
public PixelFormat FormatIts format.
public int WidthIts width in texels.
public int HeightIts height in texels.
public TextureUsage UsageEverything it will be used for.
public int DepthIts depth in texels, for a 3D texture.
public int MipLevelsHow many mip levels, or 0 for a full chain.
public int ArrayLayersHow many array layers. A cube map has six per cube.
public int SampleCountHow many samples per texel.
public TextureDimension DimensionIts shape.
public string NameA name for the debugger and the validation layers.
public int EffectiveMipLevelsThe mip level count, with 0 resolved to a full chain.
public long TotalSizeHow many bytes every level and layer occupies, tightly packed.
Methods (2)
public TextureDescription(PixelFormat Format, int Width, int Height, TextureUsage Usage, int Depth = 1, int MipLevels = 1, int ArrayLayers = 1, int SampleCount = 1, TextureDimension Dimension = Texture2D, string Name = "")What to create a texture as.
public void Validate()Checks the description is one a backend could satisfy.
Used by (127, showing 40)
- ArenaFrameThirdPersonShooter
- PbrShowcaseGamePbrShowcase
- TriangleGameHelloTriangle
- UiHostHelloUi
- VideoGameVideoPlayback
- VirtualGeometryGameVirtualGeometry
- AppGraphicsVixen.App.Hosting
- AssetTextureSourceVixen.Engine.Renderer
- AutoExposureRendererVixen.Rendering.PostFx
- AutoExposureTestsVixen.Rendering.PostFx.Tests
- BindlessFrameTestsVixen.Rendering.Tests
- BindlessSamplingDeviceTestsVixen.Graphics.Golden.Tests
- BindlessTableDeviceTestsVixen.Graphics.Golden.Tests
- BindlessTableTestsVixen.Graphics.Tests
- BloomRendererVixen.Rendering.PostFx
- BloomTestsVixen.Rendering.PostFx.Tests
- ClusterResolveTestsVixen.Rendering.Tests
- ClusteredLightingTestsVixen.Rendering.Tests
- ClusteredShadingDeviceTestsVixen.Graphics.Golden.Tests
- CommandRecorderTestsVixen.Graphics.Null.Tests
- CompositorAssetTestsVixen.Rendering.Tests
- DepthPrepassTestsVixen.Rendering.Tests
- DescriptorBindingTestsVixen.Rendering.Tests
- DrawCompactionTestsVixen.Rendering.Tests
- EntryVixen.Graphics.RenderGraph
- EnvironmentTextureVixen.Rendering
- FixtureVixen.Graphics.Golden.Tests
- FixtureVixen.Rendering.Tests
- FoliageCullPassTestsVixen.Rendering.Terrain.Tests
- ForwardFrameTestsVixen.Rendering.Tests
- ForwardLightingTestsVixen.Rendering.Tests
- GlCommandListTestsVixen.Graphics.OpenGL.Tests
- GlDeviceVixen.Graphics.OpenGL
- GlDeviceTestsVixen.Graphics.OpenGL.Tests
- GlEnumsVixen.Graphics.OpenGL
- GlReplayTestsVixen.Graphics.OpenGL.Tests
- GlSwapChainVixen.Graphics.OpenGL
- GlTextureVixen.Graphics.OpenGL
- GlobalDistanceFieldTextureVixen.Rendering
- GpuClusterVisibilityVixen.Rendering