Skip to content

D3D12 - Add support for memory allocators #246

Open

Description

CreateComittedResource is fine,

However is good to add interface to CreateTexture, CreateTextureEx

Particularly on d3d12 this allocator is very often used

https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator

Activity

  1. kingofthebongo2008 commented on Sep 10, 2021

    @kingofthebongo2008
    Author

    Support for a callback to the interface + initial resource transition will be fine

  2. walbourn commented on Sep 10, 2021

    @walbourn
    Collaborator

    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, 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.

  3. kingofthebongo2008 commented on Sep 11, 2021

    @kingofthebongo2008
    Author

    Indeed, you are right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions