Fixes for GPU resources C# object types

This commit is contained in:
Wojciech Figat
2022-12-09 11:28:39 +01:00
parent 202de3499f
commit a809a69ca0
10 changed files with 15 additions and 12 deletions

View File

@@ -220,7 +220,7 @@ GPUTexture* GPUTexture::New()
}
GPUTexture::GPUTexture()
: GPUResource(SpawnParams(Guid::New(), GPUTexture::TypeInitializer))
: GPUResource(SpawnParams(Guid::New(), TypeInitializer))
, _residentMipLevels(0)
, _sRGB(false)
, _isBlockCompressed(false)
@@ -423,7 +423,6 @@ bool GPUTexture::Init(const GPUTextureDescription& desc)
break;
}
case TextureDimensions::VolumeTexture:
{
if (desc.IsDepthStencil())
@@ -461,7 +460,6 @@ bool GPUTexture::Init(const GPUTextureDescription& desc)
break;
}
case TextureDimensions::CubeTexture:
{
if (desc.HasPerSliceViews())