~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/microsoft/vulkan/dzn_abi_helper.h

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    return ret;
59
59
}
60
60
 
61
 
#if D3D12_SDK_VERSION >= 610
62
61
static inline D3D12_RESOURCE_ALLOCATION_INFO
63
62
dzn_ID3D12Device12_GetResourceAllocationInfo3(ID3D12Device12 *dev, UINT visible_mask, UINT num_resource_descs, const D3D12_RESOURCE_DESC1 *resource_descs,
64
63
                                              const UINT *num_castable_formats, const DXGI_FORMAT *const *castable_formats,
72
71
#endif
73
72
   return ret;
74
73
}
75
 
#endif
76
74
 
77
75
static inline D3D12_RESOURCE_DESC
78
76
dzn_ID3D12Resource_GetDesc(ID3D12Resource *res)
86
84
    return ret;
87
85
}
88
86
 
 
87
static inline D3D12_HEAP_DESC
 
88
dzn_ID3D12Heap_GetDesc(ID3D12Heap *heap)
 
89
{
 
90
   D3D12_HEAP_DESC ret;
 
91
#ifdef _WIN32
 
92
    ID3D12Heap_GetDesc(heap, &ret);
 
93
#else
 
94
    ret = ID3D12Heap_GetDesc(heap);
 
95
#endif
 
96
    return ret;
 
97
}
 
98
 
89
99
static inline D3D12_CPU_DESCRIPTOR_HANDLE
90
100
dzn_ID3D12DescriptorHeap_GetCPUDescriptorHandleForHeapStart(ID3D12DescriptorHeap *heap)
91
101
{