Closed Gavin-Williams closed 2 years ago
What pixel format did you specify when creating the ID3D11Resource? The error message seems to be saying that you can't pass null as the description if the resource was created with a typeless pixel format.
@paulbartrum thank you. It makes sense now, after a break, and reading it again in context of what you've said. I see that the type is important. Just my misunderstanding the error message.
This method accepts a single argument - the resource - and provides a default value for the description.
But if I do that, Dx throws an exception
Has something been missed here? Perhaps the description can be extracted from the resource? Or should the method signature be changed?