summaryrefslogtreecommitdiffstats
path: root/AssetLoader/src/GLTFLoader.cpp
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-12-03 01:06:21 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-12-03 01:06:21 +0000
commit3d2dc82b3eebb0535ece175d090f4b67e0d1e021 (patch)
treea193e1f674ba1821c67c1f47dbd2403b14700d84 /AssetLoader/src/GLTFLoader.cpp
parentGLTFLoader: reworked material to load material attribs in a shader-friendly f... (diff)
downloadDiligentTools-3d2dc82b3eebb0535ece175d090f4b67e0d1e021.tar.gz
DiligentTools-3d2dc82b3eebb0535ece175d090f4b67e0d1e021.zip
GLTF Loader: switched to using texture arrays
Diffstat (limited to 'AssetLoader/src/GLTFLoader.cpp')
-rw-r--r--AssetLoader/src/GLTFLoader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/AssetLoader/src/GLTFLoader.cpp b/AssetLoader/src/GLTFLoader.cpp
index c6618f6..6683066 100644
--- a/AssetLoader/src/GLTFLoader.cpp
+++ b/AssetLoader/src/GLTFLoader.cpp
@@ -780,7 +780,7 @@ void Model::LoadTextures(IRenderDevice* pDevice,
{
TextureDesc TexDesc;
TexDesc.Name = "GLTF Texture";
- TexDesc.Type = RESOURCE_DIM_TEX_2D;
+ TexDesc.Type = RESOURCE_DIM_TEX_2D_ARRAY;
TexDesc.Usage = USAGE_DEFAULT;
TexDesc.BindFlags = BIND_SHADER_RESOURCE;
TexDesc.Width = gltf_image.width;
@@ -821,7 +821,7 @@ void Model::LoadTextures(IRenderDevice* pDevice,
// Create stub texture
TextureDesc TexDesc;
TexDesc.Name = "Checkerboard stub texture";
- TexDesc.Type = RESOURCE_DIM_TEX_2D;
+ TexDesc.Type = RESOURCE_DIM_TEX_2D_ARRAY;
TexDesc.Width = 32;
TexDesc.Height = 32;
TexDesc.Format = TEX_FORMAT_RGBA8_UNORM;