Advertisement

SharpDX - Modifying the MiniTri example to show a texture

Started by March 30, 2018 05:03 PM
2 comments, last by anscenic 6 years, 10 months ago

Trying to modify the D3D11 example to draw a texture onto the triangle rather than the colours but all I'm not seeing the triangle. What am I missing?

Code:

https://pastebin.com/KVMTq9r6

MiniTri.fx

https://pastebin.com/0w1myEg0

I only skimmed over and didnt compare to the original but why is the texture a render target? It should only need to be a shader resource unless you try to render to it, which is not what you are trying to do. I might have missunderstood because I only glanced.

Advertisement

It's def not, unless I have missed something massive!

 

 

This topic is closed to new replies.

Advertisement