summaryrefslogtreecommitdiff
path: root/engine/xe_device.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'engine/xe_device.hpp')
-rwxr-xr-xengine/xe_device.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engine/xe_device.hpp b/engine/xe_device.hpp
index 42b0751..9825ff2 100755
--- a/engine/xe_device.hpp
+++ b/engine/xe_device.hpp
@@ -42,6 +42,7 @@ class Device {
VkSurfaceKHR surface() { return surface_; }
VkQueue graphicsQueue() { return graphicsQueue_; }
VkQueue presentQueue() { return presentQueue_; }
+ VkPhysicalDeviceProperties getProperties() { return properties; }
SwapChainSupportDetails getSwapChainSupport() { return querySwapChainSupport(physicalDevice); }
uint32_t findMemoryType(uint32_t typeFilter, VkMemoryPropertyFlags properties);
@@ -56,11 +57,11 @@ class Device {
VkMemoryPropertyFlags properties,
VkBuffer &buffer,
VkDeviceMemory &bufferMemory);
+
VkCommandBuffer beginSingleTimeCommands();
void endSingleTimeCommands(VkCommandBuffer commandBuffer);
void copyBuffer(VkBuffer srcBuffer, VkBuffer dstBuffer, VkDeviceSize size);
- void copyBufferToImage(
- VkBuffer buffer, VkImage image, uint32_t width, uint32_t height, uint32_t layerCount);
+ void copyBufferToImage(VkBuffer buffer, VkImage image, uint32_t width, uint32_t height, uint32_t layerCount);
void createImageWithInfo(
const VkImageCreateInfo &imageInfo,
@@ -86,6 +87,7 @@ class Device {
void hasGflwRequiredInstanceExtensions();
bool checkDeviceExtensionSupport(VkPhysicalDevice device);
SwapChainSupportDetails querySwapChainSupport(VkPhysicalDevice device);
+ VkSampleCountFlagBits getMaxUsableSampleCount();
VkInstance instance;
VkDebugUtilsMessengerEXT debugMessenger;
@@ -98,6 +100,8 @@ class Device {
VkQueue graphicsQueue_;
VkQueue presentQueue_;
+ VkSampleCountFlagBits msaaSamples = VK_SAMPLE_COUNT_1_BIT;
+
const std::vector<const char *> validationLayers = {"VK_LAYER_KHRONOS_validation"};
const std::vector<const char *> deviceExtensions = {VK_KHR_SWAPCHAIN_EXTENSION_NAME, VK_KHR_MAINTENANCE1_EXTENSION_NAME};
};