Fix compilation errors with /permissive- standard conformance mode
This commit is contained in:
@@ -553,7 +553,7 @@ void GPUTextureDX11::initHandles()
|
||||
if (useDSV && useSRV && PixelFormatExtensions::HasStencil(format))
|
||||
{
|
||||
PixelFormat stencilFormat;
|
||||
switch (_dxgiFormatDSV)
|
||||
switch (static_cast<PixelFormat>(_dxgiFormatDSV))
|
||||
{
|
||||
case PixelFormat::D24_UNorm_S8_UInt:
|
||||
srDesc.Format = DXGI_FORMAT_X24_TYPELESS_G8_UINT;
|
||||
|
||||
@@ -210,7 +210,7 @@ public:
|
||||
/// <param name="device">The graphics device.</param>
|
||||
/// <param name="name">The resource name.</param>
|
||||
GPUResourceDX12(GPUDeviceDX12* device, const StringView& name)
|
||||
: GPUResourceBase(device, name)
|
||||
: GPUResourceBase<GPUDeviceDX12, BaseType>(device, name)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
@@ -732,7 +732,7 @@ void GPUTextureDX12::initHandles()
|
||||
if (useDSV && useSRV && PixelFormatExtensions::HasStencil(format))
|
||||
{
|
||||
PixelFormat stencilFormat;
|
||||
switch (_dxgiFormatDSV)
|
||||
switch (static_cast<PixelFormat>(_dxgiFormatDSV))
|
||||
{
|
||||
case PixelFormat::D24_UNorm_S8_UInt:
|
||||
srDesc.Format = DXGI_FORMAT_X24_TYPELESS_G8_UINT;
|
||||
|
||||
Reference in New Issue
Block a user