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. 

Shader execution order

Hi! I was just wondering about the order of execution of the shaders in UE4? By shader I mean the actual text files with the .usf file extension.

Product Version: Not Selected
more ▼

asked Sep 21 '14 at 02:10 PM in Rendering

avatar image

33 7 11 13

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

1 answer: sort voted first

What do you mean by order? There is no definable order of the USF's. They are used depending on different situations. ie. The LocalVertexFactory usf would be used when rendering an object that uses the specified factory. Where as the DepthOfField shaders are used during post processing.

more ▼

answered Sep 21 '14 at 02:27 PM

avatar image

1.5k 50 9 59

avatar image Halliom Sep 21 '14 at 03:12 PM

Yes, but in the actual source, where does execution start. I haven't found a 'main' function yet.

avatar image Ehamloptiran Sep 22 '14 at 01:39 AM

Ah I see. Well for Vertex Factory shaders you will find the Main in the BasePassVertexShader, BasePassPixelShader USF. As for other shaders, such as Post Process, do a search through the Engine source code for IMPLEMENT_SHADER_TYPE, The 2nd variable will tell u the USF, the third variable the Entry Point.

avatar image Halliom Sep 22 '14 at 03:21 PM

Thank you so much!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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