Vixen
02b45cc4
csharp
public readonly record struct TextureDescription

What 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 Format

    Its format.

  • public int Width

    Its width in texels.

  • public int Height

    Its height in texels.

  • public TextureUsage Usage

    Everything it will be used for.

  • public int Depth

    Its depth in texels, for a 3D texture.

  • public int MipLevels

    How many mip levels, or 0 for a full chain.

  • public int ArrayLayers

    How many array layers. A cube map has six per cube.

  • public int SampleCount

    How many samples per texel.

  • public TextureDimension Dimension

    Its shape.

  • public string Name

    A name for the debugger and the validation layers.

  • public int EffectiveMipLevels

    The mip level count, with 0 resolved to a full chain.

  • public long TotalSize

    How 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