Community
Maya Shading, Lighting and Rendering
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya materials topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

dx11 Shader Error on creation

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
east-eden
3320 Views, 2 Replies

dx11 Shader Error on creation

Hey!

 

When I create a dx11 shader in maya 2019 it works as expected but when I create the shader in 2022 or 2023 I get an error that makes it seem like the plugin is not loaded despite it being loaded? 

 

This is the error I get: 
// Result: Connected dx11Shader1.outColor to dx11Shader1SG.surfaceShader.
// Error: Failed to create evaluator for "drawdb/shader/surface/dx11Shader" classification because the current drawing API isn't supported.

And inside of the dx11Shader I'm creating, it just tells me the Technique is "None defined" and greyed out so I can't select tessellation off/on and the shader has no inputs. 

Is anyone else familiar with this error or have any idea how to fix it? 

2 REPLIES 2
Message 2 of 3
chris__landreth
in reply to: east-eden

Hey--I think your problem is that your Viewport2.0 Rendering Engine is not set to "DirectX 11".  This setting is the only one that supports Maya's "dx11Shader" API; if you have your engine set to "OpenGL" or anything else, your dx11 shader will stay "unknown" as you mentioned, and you get the exact error message you showed in your explanation.

 

Go into your "Windows-->Settings/Preferences-->Preferences" editor.  Bring up the "Display" tab.  In the "Viewport2.0" section at the bottom of this tab, select "DirectX 11" from the pulldown for "Rendering Engine".  Restart Maya.  Your dx11 Shaders should be fine now.

Message 3 of 3
east-eden
in reply to: chris__landreth

That was it! Very silly on my side, I set the directx 11 in my preferences but forgot to restart the program. It all works now. Thank you!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report