# Compiling shaders with DX12 features

**URL:** <https://forums.unrealengine.com/t/compiling-shaders-with-dx12-features/432719>\
**Category:** Rendering\
**Tags:** d3d11, shadercompileworker, unreal-engine, Shaders, question\
**Created:** [August 29, 2018, 12:33pm UTC](https://forums.unrealengine.com/t/compiling-shaders-with-dx12-features/432719 "2018-08-29T12:33:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommybazar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tommybazar](https://forums.unrealengine.com/u/tommybazar)\
**Post date:** [August 29, 2018, 12:33pm UTC](https://forums.unrealengine.com/t/compiling-shaders-with-dx12-features/432719/1 "2018-08-29T12:33:33Z")

</div>

Hi everybody, I’m wondering, does/will the ShaderCompiler in UE4 support compiling shaders with D3D12 features?

Long story short - I have a compute shader that would be a lot nicer if I could use UAV-Typed loads for a `RWTexture3D<float4>` (or `<uint16>`).  
In D3D11, the UAV-Typed loads are limited to 32bit primitives, but D3D11.3 and D3D12 already support typed loads for several more formats, two of them being R32G32B32A32\_FLOAT and R16G16B16A16\_UINT.

Now even with `-dx12` command-line argument on startup, I still get the same error of

> “Typed UAV loads are only supported for single-component 32-bit element types.”

(because the ShaderCompiler is compiling at SM5 level, so D3D11)

Now I’m kind of sure it actually does _not_ support this as of now, since the highest feature level in `ERHIFeatureLevel` that you can specify is SM5 - so D3D11 feature level, but if anyone can prove me wrong, I would be a very happy programmer indeed.

reference - [Typed Unordered Access View Loads - Win32 apps | Microsoft Learn](https://docs.microsoft.com/en-us/windows/desktop/direct3d11/typed-unordered-access-view-loads)
