Skip to content

Commit

Permalink
[d3d9] Fix extension list container
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpyneDreams committed Dec 6, 2024
1 parent 7cca3bd commit 903d2bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/d3d9/d3d9_interop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace dxvk {
if (pExtensionCount == nullptr)
return D3DERR_INVALIDCALL;

auto extensions = m_interface->GetInstance()->extensions().getExtensionList();
auto extensions = m_interface->GetInstance()->extensions().toList();
if (ppExtensions == nullptr) {
// Count extensions
UINT count = 0;
Expand Down
11 changes: 8 additions & 3 deletions src/dxvk/dxvk_extensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,16 @@ namespace dxvk {
DxvkExt khrSurface = { VK_KHR_SURFACE_EXTENSION_NAME, DxvkExtMode::Required };

/**
* \brief Get list of supported extensions
* \brief Get all supported extensions in a list
* \returns List of supported extensions
*/
std::initializer_list<const DxvkExt*> getExtensionList() const {
return { &extDebugUtils, &extSurfaceMaintenance1, &khrGetSurfaceCapabilities2, &khrSurface };
std::vector<const DxvkExt*> toList() const {
return {
&extDebugUtils,
&extSurfaceMaintenance1,
&khrGetSurfaceCapabilities2,
&khrSurface
};
}
};

Expand Down

0 comments on commit 903d2bd

Please sign in to comment.