mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
Support 2D array texture copying on D3D12, Metal and OpenGL
This patch implements the creation of 2D array textures and copying between a buffer and a layer of a 2D array texture on D3D12, Metal and OpenGL back-ends. TEST=dawn_end2end_tests
This commit is contained in:
committed by
Corentin Wallez
parent
d8597b2e1f
commit
4ccf4e3fdd
@@ -365,11 +365,7 @@ TEST_P(CopyTests_T2B, RowPitchUnaligned) {
|
||||
}
|
||||
|
||||
// Test that copying regions of each texture 2D array layer works
|
||||
TEST_P(CopyTests_T2B, Texture2DArrayRegion)
|
||||
{
|
||||
// TODO(jiawei.shao@intel.com): support 2D array texture on OpenGL, D3D12 and Metal.
|
||||
DAWN_SKIP_TEST_IF(IsOpenGL() || IsD3D12() || IsMetal());
|
||||
|
||||
TEST_P(CopyTests_T2B, Texture2DArrayRegion) {
|
||||
constexpr uint32_t kWidth = 256;
|
||||
constexpr uint32_t kHeight = 128;
|
||||
constexpr uint32_t kLayers = 6u;
|
||||
@@ -378,9 +374,6 @@ TEST_P(CopyTests_T2B, Texture2DArrayRegion)
|
||||
|
||||
// Test that copying texture 2D array mips with 256-byte aligned sizes works
|
||||
TEST_P(CopyTests_T2B, Texture2DArrayMip) {
|
||||
// TODO(jiawei.shao@intel.com): support 2D array texture on OpenGL, D3D12 and Metal.
|
||||
DAWN_SKIP_TEST_IF(IsOpenGL() || IsD3D12() || IsMetal());
|
||||
|
||||
constexpr uint32_t kWidth = 256;
|
||||
constexpr uint32_t kHeight = 128;
|
||||
constexpr uint32_t kLayers = 6u;
|
||||
|
||||
Reference in New Issue
Block a user