From a09d692eabba70d5f79db99918faa7eace93eddf Mon Sep 17 00:00:00 2001 From: assiduous Date: Sat, 3 Oct 2020 19:04:44 -0700 Subject: Added device features to inidicate 8-bit types support (API240074) --- Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Graphics/GraphicsEngineD3D11') diff --git a/Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp b/Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp index ffd746fb..76020ed8 100644 --- a/Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp +++ b/Graphics/GraphicsEngineD3D11/src/RenderDeviceD3D11Impl.cpp @@ -164,13 +164,19 @@ RenderDeviceD3D11Impl::RenderDeviceD3D11Impl(IReferenceCounters* pRefCo } // Explicit fp16 is only supported in DXC through Shader Model 6.2, so there's no support for FXC or D3D11. + // clang-format off UNSUPPORTED_FEATURE(ResourceBuffer16BitAccess, "16-bit native access to resource buffers is"); - UNSUPPORTED_FEATURE(UniformBuffer16BitAccess, "16-bit native access to uniform buffers is"); - UNSUPPORTED_FEATURE(ShaderInputOutput16, "16-bit shader input/output is"); + UNSUPPORTED_FEATURE(UniformBuffer16BitAccess, "16-bit native access to uniform buffers is"); + UNSUPPORTED_FEATURE(ShaderInputOutput16, "16-bit shader input/output is"); + + UNSUPPORTED_FEATURE(ShaderInt8, "Native 8-bit shader operations are"); + UNSUPPORTED_FEATURE(ResourceBuffer8BitAccess, "8-bit native access to resource buffers is"); + UNSUPPORTED_FEATURE(UniformBuffer8BitAccess, "8-bit native access to uniform buffers is"); + // clang-format on #undef UNSUPPORTED_FEATURE #if defined(_MSC_VER) && defined(_WIN64) - static_assert(sizeof(DeviceFeatures) == 27, "Did you add a new feature to DeviceFeatures? Please handle its satus here."); + static_assert(sizeof(DeviceFeatures) == 30, "Did you add a new feature to DeviceFeatures? Please handle its satus here."); #endif auto& TexCaps = m_DeviceCaps.TexCaps; -- cgit v1.2.3