{"id":62235,"library":"d3d12-memory-allocator","title":"D3D12 Memory Allocator","description":"Easy to integrate D3d12 memory allocation library from GPUOpen","status":"active","version":"3.1.0","language":"cpp","source_language":null,"source_url":null,"tags":["directx","gpu","memory","graphics"],"install":[{"cmd":"vcpkg install d3d12-memory-allocator","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(d3d12_memory_allocator CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE D3D12MemAlloc::D3D12MemAlloc)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"D3D12MemAlloc.h","correct":"#include <D3D12MemAlloc.h>"}],"quickstart":{"code":"#include <D3D12MemAlloc.h>\n#include <wrl.h>\n\nint main() {\n    // Assume ID3D12Device* device is created\n    D3D12MA::ALLOCATOR_DESC desc = {};\n    desc.pDevice = device;\n    desc.Flags = D3D12MA::ALLOCATOR_FLAG_NONE;\n    D3D12MA::Allocator* allocator;\n    D3D12MA::CreateAllocator(&desc, &allocator);\n    // Allocate resources...\n    allocator->Release();\n    return 0;\n}","lang":"cpp","description":"Initialize D3D12 memory allocator"},"warnings":[{"fix":"Ensure Windows SDK with D3D12 support is installed","message":"Requires DirectX 12 headers and runtime","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'alloc':3,9 'd3d12':1,7 'directx':13 'easi':4 'gpu':14 'gpuopen':12 'graphic':16 'integr':6 'librari':10 'memori':2,8,15","created_at":"2026-06-17T05:21:27.636989+00:00","updated_at":"2026-06-17T05:21:27.636989+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}