llvm / llvm/offload-test-suite
Add tests for Texture1DArray
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 18
- Forks
- 39
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 40
Description
References
- https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/sm5-object-texture1darray
- Existing Texture2D offload tests:
offload-test-suite/test/Feature/Textures/Texture2D.*.test.yaml
Description
Add runtime GPU offload tests for Texture1DArray. Texture1DArray uses float2 locations, int offsets, and int3 Load locations (xy + mip). Gather/GatherCmp are not available on Texture1DArray.
Tasks
-
Add
Texture1DArrayto offload-test-suiteResourceKindoffload-test-suite/include/Support/Pipeline.h— addTexture1DArraytoResourceKindenum, updateisRaw(),isSampler(),isTexture(),isReadWrite(),isSampledTexture(), andScalarEnumerationTraitsoffload-test-suite/lib/API/VK/Device.cpp— addTexture1DArraycases:VkDescriptorType,VkImageViewType(VK_IMAGE_VIEW_TYPE_1D), image creationoffload-test-suite/lib/API/DX/Device.cpp— addTexture1DArraycases:D3D12_SRV_DIMENSION_TEXTURE1DArray, SRV/UAV descriptor setupoffload-test-suite/lib/API/MTL/MTLDevice.cpp— addTexture1DArraycase for Metal texture type mapping
-
Write tests (
offload-test-suite/test/Feature/Textures/)Load.test—Load(int3)andLoad(int3, int)with offsetSample.test—Sample(SamplerState, float2)with offset and clamp overloadsSampleBias.test—SampleBias(SamplerState, float2, float)SampleGrad.test—SampleGrad(SamplerState, float2, float, float)SampleCmp.test—SampleCmp(SamplerComparisonState, float2, float)OperatorIndex.test—Tex[uint]subscriptmips.OperatorIndex.test—Tex.mips[mip][uint]CalculateLevelOfDetail.test—CalculateLevelOfDetail(SamplerState, float)Sampler.filter.test— sampler min/mag filter behaviourSampler.address.test— sampler address modesSampler.mips.test— sampler mip selection
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.