mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-09-26 12:16:00 +00:00
Support depth-1 volume textures. (#3883)
This commit is contained in:
committed by
GitHub
parent
0af3dac7bf
commit
3d3b08778e
@@ -3800,7 +3800,7 @@ static_assert(BX_COUNTOF(s_accessNames) == Access::Count, "Invalid s_accessNames
|
||||
desc->setTextureType(MTL::TextureTypeCube);
|
||||
m_type = TextureCube;
|
||||
}
|
||||
else if (1 < imageContainer.m_depth)
|
||||
else if (isVolume(imageContainer) )
|
||||
{
|
||||
desc->setTextureType(MTL::TextureType3D);
|
||||
m_type = Texture3D;
|
||||
|
||||
Reference in New Issue
Block a user