基本调通 回调
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
|
||||
struct Texture
|
||||
{
|
||||
std::string name;
|
||||
VkSampler sampler;
|
||||
VkImage image;
|
||||
VkImageLayout image_layout;
|
||||
@@ -19,6 +18,14 @@ struct Texture
|
||||
VkBuffer stagingBuffer = VK_NULL_HANDLE;
|
||||
VkDeviceMemory stagingBufferMemory = VK_NULL_HANDLE;
|
||||
VkDevice device;
|
||||
void reset() {
|
||||
sampler = VK_NULL_HANDLE;
|
||||
image = VK_NULL_HANDLE;
|
||||
device_memory = VK_NULL_HANDLE;
|
||||
view = VK_NULL_HANDLE;
|
||||
stagingBuffer = VK_NULL_HANDLE;
|
||||
stagingBufferMemory = VK_NULL_HANDLE;
|
||||
}
|
||||
};
|
||||
|
||||
class Application : public AppBase
|
||||
|
||||
Reference in New Issue
Block a user