You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, CreateComittedResource is called from BufferHelpers, DDSTextureLoader, GeometricPrimitive, GraphicsMemory, Model, ResourceUploadBatch, ScreenGrab, SpriteBatch, SpriteFont, and WICTextureLoader.
A likely implementation would be to add a method to the GraphicsResource class that all these modules use to CreateResources, and that could be used to hook custom allocators.
Activity
kingofthebongo2008 commentedon Sep 10, 2021
Support for a callback to the interface + initial resource transition will be fine
walbourn commentedon Sep 10, 2021
If I do this, I should probably also update DDSTextureLoader, WICTextureLoader, etc. in the DirectX Tool Kit
Please consider filing an issue here as well: https://github.com/microsoft/DirectXTK12/issues
Currently,
CreateComittedResourceis called from BufferHelpers, DDSTextureLoader, GeometricPrimitive, GraphicsMemory, Model, ResourceUploadBatch, ScreenGrab, SpriteBatch, SpriteFont, and WICTextureLoader.A likely implementation would be to add a method to the GraphicsResource class that all these modules use to CreateResources, and that could be used to hook custom allocators.
kingofthebongo2008 commentedon Sep 11, 2021
Indeed, you are right.