x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Compiling shaders with DX12 features

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 - https://docs.microsoft.com/en-us/windows/desktop/direct3d11/typed-unordered-access-view-loads

Product Version: UE 4.20
Tags:
more ▼

asked Aug 29 '18 at 12:33 PM in Rendering

avatar image

tommybazar
11 2 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question