MCPcopy Create free account
hub / github.com/LibreVR/Revive / TextureVk

Method TextureVk

Revive/TextureVk.cpp:6–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <glad/glad.h>
5
6TextureVk::TextureVk(VkDevice device, VkPhysicalDevice physicalDevice,
7 VkInstance instance, VkQueue* pQueue)
8 : m_data()
9 , m_image()
10 , m_memory()
11 , m_memoryProperties()
12 , m_device(device)
13 , m_pQueue(pQueue)
14 , m_hMemoryHandle(nullptr)
15 , m_MemoryObject()
16 , m_CmdPool()
17 , m_LockCmd()
18 , m_UnlockCmd()
19{
20 // Update the texture data
21 m_data.m_pDevice = device;
22 m_data.m_pPhysicalDevice = physicalDevice;
23 m_data.m_pInstance = instance;
24
25 vkGetPhysicalDeviceMemoryProperties(physicalDevice, &m_memoryProperties);
26}
27
28TextureVk::~TextureVk()
29{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected