asdf
This commit is contained in:
@@ -949,6 +949,14 @@ std::unique_ptr<vkb::Application> create_texture_loading()
|
|||||||
return std::make_unique<TextureLoading>();
|
return std::make_unique<TextureLoading>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TextureLoading* TextureLoading::this_instance = nullptr;
|
||||||
|
|
||||||
|
void TextureLoadProcessWithVulkan(uint8_t* data, int width, int height, int rowStride, size_t dataSize)
|
||||||
|
{
|
||||||
|
TextureLoading::Texture& cam_tex = TextureLoading::Get()->cam_text;
|
||||||
|
TextureLoading::Get()->processWithVulkan(data, width, height, rowStride, dataSize, cam_tex);
|
||||||
|
}
|
||||||
|
|
||||||
void TextureLoading::processWithVulkan(uint8_t* data, int width, int height, int rowStride, size_t dataSize, Texture& out_texture)
|
void TextureLoading::processWithVulkan(uint8_t* data, int width, int height, int rowStride, size_t dataSize, Texture& out_texture)
|
||||||
{
|
{
|
||||||
VkDevice& device = get_device().get_handle();
|
VkDevice& device = get_device().get_handle();
|
||||||
|
|||||||
@@ -80,6 +80,12 @@ public:
|
|||||||
VkDescriptorSetLayout descriptor_set_layout;
|
VkDescriptorSetLayout descriptor_set_layout;
|
||||||
VkDescriptorSetLayout descriptor_set_layout_bg;
|
VkDescriptorSetLayout descriptor_set_layout_bg;
|
||||||
|
|
||||||
|
static TextureLoading* Get() {
|
||||||
|
return this_instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
static TextureLoading* this_instance;
|
||||||
|
|
||||||
TextureLoading();
|
TextureLoading();
|
||||||
~TextureLoading();
|
~TextureLoading();
|
||||||
virtual void request_gpu_features(vkb::PhysicalDevice& gpu) override;
|
virtual void request_gpu_features(vkb::PhysicalDevice& gpu) override;
|
||||||
|
|||||||
Reference in New Issue
Block a user