summaryrefslogtreecommitdiffstats
path: root/drivers/vulkan/rendering_device_vulkan.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-08-30 14:54:20 +0200
committerGitHub <noreply@github.com>2022-08-30 14:54:20 +0200
commit02d510bd079b0730f14680f75a1325ce1da0ac09 (patch)
tree814a0e7200eacb586270affcf2f4e3f47f90ad8a /drivers/vulkan/rendering_device_vulkan.h
parentae349d82277e85ca348fd3da2ff4ad7c7033c8e6 (diff)
parente96b1a2c0c46f575454603631e85daf78081764a (diff)
downloadredot-engine-02d510bd079b0730f14680f75a1325ce1da0ac09.tar.gz
Merge pull request #63003 from Geometror/msaa-2d
Diffstat (limited to 'drivers/vulkan/rendering_device_vulkan.h')
-rw-r--r--drivers/vulkan/rendering_device_vulkan.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.h b/drivers/vulkan/rendering_device_vulkan.h
index 6007e1ab4d..abec1b0e1b 100644
--- a/drivers/vulkan/rendering_device_vulkan.h
+++ b/drivers/vulkan/rendering_device_vulkan.h
@@ -150,6 +150,8 @@ class RenderingDeviceVulkan : public RenderingDevice {
bool used_in_raster = false;
bool used_in_compute = false;
+ bool is_resolve_buffer = false;
+
uint32_t read_aspect_mask = 0;
uint32_t barrier_aspect_mask = 0;
bool bound = false; // Bound to framebffer.
@@ -1042,6 +1044,8 @@ class RenderingDeviceVulkan : public RenderingDevice {
HashMap<RID, String> resource_names;
#endif
+ VkSampleCountFlagBits _ensure_supported_sample_count(TextureSamples p_requested_sample_count) const;
+
public:
virtual RID texture_create(const TextureFormat &p_format, const TextureView &p_view, const Vector<Vector<uint8_t>> &p_data = Vector<Vector<uint8_t>>());
virtual RID texture_create_shared(const TextureView &p_view, RID p_with_texture);