Direct3D 11 Example, but using Win32 API

Hi Guys, I create an Example code of Direct3D 11 Usage in Odin using Win32 API, this is still work in progress, i’m still figuring out how to load texture from image using vendor:directx since that package doesn’t support CreateWICTextureFromMemory() and CreateWICTextureFromFile()

Here’s the repository, feel free to use it or fork it

5 Likes

To load a texture just decode the image using core:image. Then you cam create/upload the texture with CreateTexture2D.
Link is here: ID3D11Device::CreateTexture2D (d3d11.h) - Win32 apps | Microsoft Learn

And JPEG support is on my todo list for the not too distant future.