Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Optional geometry shaders

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 Dawoodoz   Members   

459
Like
0Likes
Like

Posted 18 December 2012 - 05:47 AM

I use D3DX11CompileFromMemory without the effect framework to compile vertex and pixel shaders from HLSL code.
Now I need to compile geometry shaders but the files will usually do not have a geometry shader entry point because they are usually not needed and there should be no error message for not having a geometry shader.
Is there a safe way to check if the entry point GS exist in the string of HLSL code before calling D3DX11CompileFromMemory?
I could not find any HRESULT code that only specify this error.
The word "GS" might occur by accident without being an entry point and the user might cause any syntax error in the HLSL file.

"App". is an acronym and must always be followed by a dot.

https://en.oxforddictionaries.com/punctuation/punctuation-in-abbreviations


#2 Dawoodoz   Members   

459
Like
0Likes
Like

Posted 18 December 2012 - 08:31 AM

Checking if a line in the error message begins with "error X3501:" seems to work but it does not feel reliable.

"App". is an acronym and must always be followed by a dot.

https://en.oxforddictionaries.com/punctuation/punctuation-in-abbreviations





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.