Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions core/libs/prx/libSceAgcDriver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2117,6 +2117,21 @@ target_include_directories(agc_driver_bda_device_tests PRIVATE
target_link_libraries(agc_driver_bda_device_tests PRIVATE libSceAgcDriver SDL2-static libc)
set_target_properties(agc_driver_bda_device_tests PROPERTIES CXX_EXTENSIONS OFF)
configure_windows_unwind(agc_driver_bda_device_tests)
set_property(SOURCE
${CMAKE_CURRENT_SOURCE_DIR}/tests/BdaDevice.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/PerformanceOverlay.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/PresentationPass.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/Recorder.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/execution/DepthPlaneGuestLayers.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/execution/DepthStorage.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/execution/DepthSurfaceLastWriter.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/execution/NativeMultisampleDepth.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/execution/OversizedDescriptorSets.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/execution/PartiallyResidentSnapshot.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/execution/PooledBufferRange.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/execution/SampledCacheBudget.cpp
${CMAKE_CURRENT_SOURCE_DIR}/tests/execution/SparseBufferHoles.cpp
APPEND PROPERTY COMPILE_DEFINITIONS VK_ENABLE_BETA_EXTENSIONS)
if(BUILD_TESTING)
add_test(NAME agc_driver_host_import_failure_handles COMMAND agc_driver_bda_device_tests --host-import-failures)
set_tests_properties(agc_driver_host_import_failure_handles PROPERTIES
Expand Down
6 changes: 4 additions & 2 deletions core/libs/prx/libSceAgcDriver/tests/BdaDevice.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "PortabilitySubset.hpp"
#include "BdaShader.hpp"
#include "ColorTransferTests.hpp"
#include "HostImportFailure.hpp"
Expand Down Expand Up @@ -160,8 +161,9 @@ class Device {
VkDeviceCreateInfo device{VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, &address};
device.queueCreateInfoCount = 1;
device.pQueueCreateInfos = &queue;
device.enabledExtensionCount = static_cast<std::uint32_t>(extensionsEnabled.size());
device.ppEnabledExtensionNames = extensionsEnabled.data();
AgcDriver::Tests::PortabilitySubset subset;
subset.Enable(context.physical, function<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties"),
function<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2"), extensionsEnabled, device);
device.pEnabledFeatures = &enabled;
Check(function<PFN_vkCreateDevice>("vkCreateDevice")(context.physical, &device, nullptr, &context.device), "vkCreateDevice");
context.deviceProc = function<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
Expand Down
8 changes: 6 additions & 2 deletions core/libs/prx/libSceAgcDriver/tests/PerformanceOverlay.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "PortabilitySubset.hpp"
#include "prx/libSceAgcDriver/Execution/include/PerformanceOverlay.hpp"
#include "prx/libSceAgcDriver/Execution/include/PresentationPass.hpp"
#include "prx/libSceAgcDriver/Execution/include/PresentationScaler.hpp"
Expand Down Expand Up @@ -160,8 +161,11 @@ class Device {
VkDeviceCreateInfo device{VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO};
device.queueCreateInfoCount = 1;
device.pQueueCreateInfos = &queue;
device.enabledExtensionCount = memoryBudget ? 1 : 0;
device.ppEnabledExtensionNames = memoryBudget ? &budgetExtension : nullptr;
std::vector<const char*> extensionsEnabled;
if (memoryBudget) extensionsEnabled.push_back(budgetExtension);
AgcDriver::Tests::PortabilitySubset subset;
subset.Enable(context.physical, function<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties"),
function<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2"), extensionsEnabled, device);
Check(function<PFN_vkCreateDevice>("vkCreateDevice")(context.physical, &device, nullptr, &context.device), "vkCreateDevice");
if (memoryBudget) context.memoryProperties2 = function<PFN_vkGetPhysicalDeviceMemoryProperties2>("vkGetPhysicalDeviceMemoryProperties2");
context.deviceProc = function<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
Expand Down
38 changes: 38 additions & 0 deletions core/libs/prx/libSceAgcDriver/tests/PortabilitySubset.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#ifndef CORE_LIBS_PRX_LIBSCEAGCDRIVER_TESTS_PORTABILITYSUBSET_HPP
#define CORE_LIBS_PRX_LIBSCEAGCDRIVER_TESTS_PORTABILITYSUBSET_HPP

#include <algorithm>
#include <cstdint>
#include <cstring>
#include <stdexcept>
#include <vector>
#include <vulkan/vulkan.h>

namespace AgcDriver::Tests {

struct PortabilitySubset {
VkPhysicalDevicePortabilitySubsetFeaturesKHR features{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PORTABILITY_SUBSET_FEATURES_KHR};

void Enable(VkPhysicalDevice physical, PFN_vkEnumerateDeviceExtensionProperties enumerate, PFN_vkGetPhysicalDeviceFeatures2 queryFeatures,
std::vector<const char*>& extensions, VkDeviceCreateInfo& device) {
std::uint32_t count = 0;
if (enumerate(physical, nullptr, &count, nullptr) != VK_SUCCESS) throw std::runtime_error("vkEnumerateDeviceExtensionProperties failed");
std::vector<VkExtensionProperties> available(count);
if (enumerate(physical, nullptr, &count, available.data()) != VK_SUCCESS) throw std::runtime_error("vkEnumerateDeviceExtensionProperties failed");
const bool advertised = std::any_of(available.begin(), available.begin() + count,
[](const VkExtensionProperties& item) { return std::strcmp(item.extensionName, VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME) == 0; });
if (advertised) {
extensions.push_back(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME);
VkPhysicalDeviceFeatures2 query{VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, &features};
queryFeatures(physical, &query);
features.pNext = const_cast<void*>(device.pNext);
device.pNext = &features;
}
device.enabledExtensionCount = static_cast<std::uint32_t>(extensions.size());
device.ppEnabledExtensionNames = extensions.empty() ? nullptr : extensions.data();
}
};

}

#endif
5 changes: 5 additions & 0 deletions core/libs/prx/libSceAgcDriver/tests/PresentationPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "prx/libSceAgcDriver/Graphics/include/Resources.hpp"
#include "prx/libSceAgcDriver/Graphics/include/TextureFormat.hpp"
#include "execution/FixtureDeviceSelection.hpp"
#include "PortabilitySubset.hpp"
#include <SDL_loadso.h>
#include <algorithm>
#include <array>
Expand Down Expand Up @@ -81,6 +82,10 @@ class Device {
VkDeviceCreateInfo device{VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO};
device.queueCreateInfoCount = 1;
device.pQueueCreateInfos = &queue;
std::vector<const char*> extensionsEnabled;
AgcDriver::Tests::PortabilitySubset subset;
subset.Enable(context.physical, function<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties"),
function<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2"), extensionsEnabled, device);
Check(function<PFN_vkCreateDevice>("vkCreateDevice")(context.physical, &device, nullptr, &context.device), "vkCreateDevice");
context.deviceProc = function<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
function<PFN_vkGetPhysicalDeviceMemoryProperties>("vkGetPhysicalDeviceMemoryProperties")(context.physical, &context.memory);
Expand Down
6 changes: 4 additions & 2 deletions core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "PortabilitySubset.hpp"
#include "prx/libkernel/include/Api.hpp"
#include "prx/libSceAgc/Command/include/Packet.hpp"
#include "prx/libSceAgcDriver/Execution/include/PipelineLinkOptimization.hpp"
Expand Down Expand Up @@ -463,8 +464,9 @@ class Device {
const std::array<VkDeviceQueueCreateInfo, 2> queueInfos{queue, settle};
device.queueCreateInfoCount = settleFamily != noSettleFamily && settleFamily != family ? 2 : 1;
device.pQueueCreateInfos = queueInfos.data();
device.enabledExtensionCount = static_cast<std::uint32_t>(extensionsEnabled.size());
device.ppEnabledExtensionNames = extensionsEnabled.data();
AgcDriver::Tests::PortabilitySubset subset;
subset.Enable(context.physical, function<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties"),
function<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2"), extensionsEnabled, device);
device.pEnabledFeatures = &enabled;
Check(function<PFN_vkCreateDevice>("vkCreateDevice")(context.physical, &device, nullptr, &context.device), "vkCreateDevice");
context.deviceProc = function<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "../PortabilitySubset.hpp"
#include "prx/libSceAgcDriver/Execution/include/BdaFeatures.hpp"
#include "prx/libSceAgcDriver/Execution/include/GuestMemory.hpp"
#include "prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp"
Expand Down Expand Up @@ -125,12 +126,13 @@ class Device {
VkPhysicalDeviceFeatures enabled{};
enabled.shaderInt64 = VK_TRUE;
address.pNext = &bytes;
const std::array<const char*, 2> extensionsEnabled{VK_KHR_BUFFER_DEVICE_ADDRESS_EXTENSION_NAME, VK_KHR_8BIT_STORAGE_EXTENSION_NAME};
std::vector<const char*> extensionsEnabled{VK_KHR_BUFFER_DEVICE_ADDRESS_EXTENSION_NAME, VK_KHR_8BIT_STORAGE_EXTENSION_NAME};
VkDeviceCreateInfo device{VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, &address};
device.queueCreateInfoCount = 1;
device.pQueueCreateInfos = &queue;
device.enabledExtensionCount = static_cast<std::uint32_t>(extensionsEnabled.size());
device.ppEnabledExtensionNames = extensionsEnabled.data();
AgcDriver::Tests::PortabilitySubset subset;
subset.Enable(context.physical, function<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties"),
function<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2"), extensionsEnabled, device);
device.pEnabledFeatures = &enabled;
Check(function<PFN_vkCreateDevice>("vkCreateDevice")(context.physical, &device, nullptr, &context.device), "vkCreateDevice");
realDeviceProc = function<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "../PortabilitySubset.hpp"
#include "prx/libSceAgcDriver/Execution/include/GuestMemory.hpp"
#include "prx/libSceAgcDriver/Execution/include/BdaFeatures.hpp"
#include "prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp"
Expand Down Expand Up @@ -103,8 +104,9 @@ class Device {
VkDeviceCreateInfo device{VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, &address};
device.queueCreateInfoCount = 1;
device.pQueueCreateInfos = &queue;
device.enabledExtensionCount = static_cast<std::uint32_t>(extensionsEnabled.size());
device.ppEnabledExtensionNames = extensionsEnabled.data();
AgcDriver::Tests::PortabilitySubset subset;
subset.Enable(context.physical, function<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties"),
function<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2"), extensionsEnabled, device);
device.pEnabledFeatures = &enabled;
Check(function<PFN_vkCreateDevice>("vkCreateDevice")(context.physical, &device, nullptr, &context.device), "vkCreateDevice");
context.deviceProc = function<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "../PortabilitySubset.hpp"
#include "prx/libSceAgcDriver/Execution/include/GuestMemory.hpp"
#include "prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp"
#include "prx/libSceAgcDriver/Graphics/include/Resources.hpp"
Expand Down Expand Up @@ -79,6 +80,10 @@ class Device {
VkDeviceCreateInfo device{VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO};
device.queueCreateInfoCount = 1;
device.pQueueCreateInfos = &queue;
std::vector<const char*> extensionsEnabled;
AgcDriver::Tests::PortabilitySubset subset;
subset.Enable(context.physical, function<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties"),
function<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2"), extensionsEnabled, device);
Check(function<PFN_vkCreateDevice>("vkCreateDevice")(context.physical, &device, nullptr, &context.device), "vkCreateDevice");
context.deviceProc = function<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
context.formatProperties = function<PFN_vkGetPhysicalDeviceFormatProperties>("vkGetPhysicalDeviceFormatProperties");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "../PortabilitySubset.hpp"
#include "prx/libSceAgcDriver/Graphics/include/Texture.hpp"
#include "prx/libSceAgcDriver/Graphics/include/TextureFormat.hpp"
#include "prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp"
Expand Down Expand Up @@ -106,6 +107,10 @@ class Device {
device.queueCreateInfoCount = 1u;
device.pQueueCreateInfos = &queue;
device.pEnabledFeatures = &enabled;
std::vector<const char*> extensionsEnabled;
AgcDriver::Tests::PortabilitySubset subset;
subset.Enable(context.physical, function<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties"),
function<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2"), extensionsEnabled, device);
Check(function<PFN_vkCreateDevice>("vkCreateDevice")(context.physical, &device, nullptr, &context.device), "vkCreateDevice");
context.deviceProc = function<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
context.formatProperties = function<PFN_vkGetPhysicalDeviceFormatProperties>("vkGetPhysicalDeviceFormatProperties");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "../PortabilitySubset.hpp"
#include "prx/libSceAgcDriver/Execution/include/GuestMemory.hpp"
#include "prx/libSceAgcDriver/Graphics/include/Resources.hpp"
#include "prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp"
Expand Down Expand Up @@ -71,6 +72,10 @@ class Device {
VkDeviceCreateInfo device{VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO};
device.queueCreateInfoCount = 1;
device.pQueueCreateInfos = &queue;
std::vector<const char*> extensionsEnabled;
AgcDriver::Tests::PortabilitySubset subset;
subset.Enable(context.physical, function<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties"),
function<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2"), extensionsEnabled, device);
Check(function<PFN_vkCreateDevice>("vkCreateDevice")(context.physical, &device, nullptr, &context.device), "vkCreateDevice");
context.deviceProc = function<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
function<PFN_vkGetPhysicalDeviceMemoryProperties>("vkGetPhysicalDeviceMemoryProperties")(context.physical, &context.memory);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "../PortabilitySubset.hpp"
#include "prx/libSceAgcDriver/Execution/include/BdaFeatures.hpp"
#include "prx/libSceAgcDriver/Execution/include/GuestMemory.hpp"
#include "prx/libSceAgcDriver/Graphics/include/GuestTextureResource.hpp"
Expand Down Expand Up @@ -107,12 +108,13 @@ class Device {
VkPhysicalDeviceFeatures enabled{};
enabled.shaderInt64 = VK_TRUE;
address.pNext = &bytes;
const std::array<const char*, 2> extensionsEnabled{VK_KHR_BUFFER_DEVICE_ADDRESS_EXTENSION_NAME, VK_KHR_8BIT_STORAGE_EXTENSION_NAME};
std::vector<const char*> extensionsEnabled{VK_KHR_BUFFER_DEVICE_ADDRESS_EXTENSION_NAME, VK_KHR_8BIT_STORAGE_EXTENSION_NAME};
VkDeviceCreateInfo device{VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, &address};
device.queueCreateInfoCount = 1;
device.pQueueCreateInfos = &queue;
device.enabledExtensionCount = static_cast<std::uint32_t>(extensionsEnabled.size());
device.ppEnabledExtensionNames = extensionsEnabled.data();
AgcDriver::Tests::PortabilitySubset subset;
subset.Enable(context.physical, function<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties"),
function<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2"), extensionsEnabled, device);
device.pEnabledFeatures = &enabled;
Check(function<PFN_vkCreateDevice>("vkCreateDevice")(context.physical, &device, nullptr, &context.device), "vkCreateDevice");
context.deviceProc = function<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "../PortabilitySubset.hpp"
#include "../CommandBatchFailure.hpp"
#include "prx/libSceAgcDriver/Execution/include/GuestMemory.hpp"
#include "prx/libSceAgcDriver/Graphics/include/BufferPool.hpp"
Expand Down Expand Up @@ -197,6 +198,10 @@ class Device {
device.queueCreateInfoCount = 1;
device.pQueueCreateInfos = &queue;
device.pEnabledFeatures = &features;
std::vector<const char*> extensionsEnabled;
AgcDriver::Tests::PortabilitySubset subset;
subset.Enable(context.physical, function<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties"),
function<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2"), extensionsEnabled, device);
Check(function<PFN_vkCreateDevice>("vkCreateDevice")(context.physical, &device, nullptr, &context.device), "vkCreateDevice");
RealDeviceProc = function<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
RealCreateBuffer = reinterpret_cast<PFN_vkCreateBuffer>(RealDeviceProc(context.device, "vkCreateBuffer"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "../PortabilitySubset.hpp"
#include "prx/libSceAgcDriver/Execution/include/BdaFeatures.hpp"
#include "prx/libSceAgcDriver/Execution/include/GuestMemory.hpp"
#include "prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp"
Expand Down Expand Up @@ -192,8 +193,9 @@ class Device {
VkDeviceCreateInfo device{VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO, &address};
device.queueCreateInfoCount = 1;
device.pQueueCreateInfos = &queue;
device.enabledExtensionCount = static_cast<std::uint32_t>(extensionsEnabled.size());
device.ppEnabledExtensionNames = extensionsEnabled.data();
AgcDriver::Tests::PortabilitySubset subset;
subset.Enable(context.physical, function<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties"),
function<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2"), extensionsEnabled, device);
device.pEnabledFeatures = &enabled;
Check(function<PFN_vkCreateDevice>("vkCreateDevice")(context.physical, &device, nullptr, &context.device), "vkCreateDevice");
context.deviceProc = function<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "../PortabilitySubset.hpp"
#include "prx/libSceAgcDriver/Execution/include/GuestMemory.hpp"
#include "prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp"
#include "prx/libSceAgcDriver/Graphics/include/Resources.hpp"
Expand Down Expand Up @@ -89,6 +90,10 @@ class Device {
VkDeviceCreateInfo device{VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO};
device.queueCreateInfoCount = 1;
device.pQueueCreateInfos = &queue;
std::vector<const char*> extensionsEnabled;
AgcDriver::Tests::PortabilitySubset subset;
subset.Enable(context.physical, function<PFN_vkEnumerateDeviceExtensionProperties>("vkEnumerateDeviceExtensionProperties"),
function<PFN_vkGetPhysicalDeviceFeatures2>("vkGetPhysicalDeviceFeatures2"), extensionsEnabled, device);
Check(function<PFN_vkCreateDevice>("vkCreateDevice")(context.physical, &device, nullptr, &context.device), "vkCreateDevice");
context.deviceProc = function<PFN_vkGetDeviceProcAddr>("vkGetDeviceProcAddr");
function<PFN_vkGetPhysicalDeviceMemoryProperties>("vkGetPhysicalDeviceMemoryProperties")(context.physical, &context.memory);
Expand Down
Loading