Skip to content

Add tests for Texture2DMSArray #1141

@Icohedron

Description

@Icohedron

References

Description

Add runtime GPU offload tests for Texture2DMSArray. This is a multisampled arrayed 2D texture that only supports Load (with sample index), operator[], GetDimensions, and GetSamplePosition. It does not support Sample, Gather, CalculateLevelOfDetail, or mips.

Tasks

  • Add Texture2DMSArray to offload-test-suite ResourceKind

    • offload-test-suite/include/Support/Pipeline.h — add Texture2DMSArray to ResourceKind enum, update all helper methods and ScalarEnumerationTraits
    • offload-test-suite/lib/API/VK/Device.cpp — add Texture2DMSArray cases: VkDescriptorType, VkImageViewType (VK_IMAGE_VIEW_TYPE_2D_ARRAY), image creation with VK_SAMPLE_COUNT_* and array layers
    • offload-test-suite/lib/API/DX/Device.cpp — add Texture2DMSArray cases: D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY, SRV descriptor setup
    • offload-test-suite/lib/API/MTL/MTLDevice.cpp — add Texture2DMSArray case for Metal texture type mapping (MTLTextureType2DMultisampleArray)
  • Write tests (offload-test-suite/test/Feature/Textures/)

    • Texture2DMSArray.Load.test.yamlLoad(int3, int) and Load(int3, int, int2) with different sample indices and array slices
    • Texture2DMSArray.OperatorIndex.test.yamlTex[int3] subscript across array slices
    • Texture2DMSArray.sample.OperatorIndex.test.yamlsample[int][int3] with different sample indices and array slices

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Task.

    Projects

    Status

    Planning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions