Vixen
02b45cc4
csharp
public readonly record struct WebGpuLimits

What a WebGPU implementation reports it can do.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Every field is one of WGPULimits's, kept in its own record so WebGpuCapabilities can derive GraphicsDeviceFeatures from it in a pure function a test can drive with a browser's numbers on a machine that has no browser.

Fields and properties (15)

  • public int MaxTextureDimension2D

    The largest 2D texture edge, in texels.

  • public int MaxTextureDimension3D

    The largest 3D texture edge, in texels.

  • public int MaxTextureArrayLayers

    The largest array texture layer count.

  • public int MaxBindGroups

    The largest bound bind group count.

  • public long MaxUniformBufferBindingSize

    The largest uniform buffer binding, in bytes.

  • public int MinUniformBufferOffsetAlignment

    The alignment a dynamic uniform offset has to satisfy.

  • public int MaxVertexBuffers

    The largest bound vertex buffer count.

  • public long MaxBufferSize

    The largest buffer, in bytes.

  • public int MaxVertexAttributes

    The largest vertex attribute count across all buffers.

  • public int MaxColorAttachments

    The largest colour attachment count in one pass.

  • public int MaxDynamicUniformBuffersPerPipelineLayout

    The largest dynamic uniform buffer count in one pipeline layout.

  • public int MaxComputeWorkgroupSizeX

    The largest compute workgroup, in X.

  • public int MaxComputeWorkgroupSizeY

    The largest compute workgroup, in Y.

  • public int MaxComputeWorkgroupSizeZ

    The largest compute workgroup, in Z.

  • public static WebGpuLimits Guaranteed

    What the WebGPU specification guarantees every implementation supports.

Methods (1)

  • public WebGpuLimits OrGuaranteed()

    These limits, with anything unreported replaced by the specification's floor.

Used by (10)

  • FakeWebGpuBindingVixen.Graphics.WebGPU.Tests
  • IWebGpuBindingVixen.Graphics.WebGPU
  • NativeWebGpuBindingVixen.Graphics.WebGPU
  • NativeWebGpuTestsVixen.Graphics.WebGPU.Tests
  • PushConstantRingVixen.Graphics.WebGPU
  • WebGpuCapabilitiesVixen.Graphics.WebGPU
  • WebGpuCommandTestsVixen.Graphics.WebGPU.Tests
  • WebGpuConversionTestsVixen.Graphics.WebGPU.Tests
  • WebGpuDeviceVixen.Graphics.WebGPU
  • WebGpuDeviceTestsVixen.Graphics.WebGPU.Tests