|
@@ -749,11 +749,11 @@ public:
|
|
|
};
|
|
|
|
|
|
enum StorageBufferUsage {
|
|
|
- STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT = 1
|
|
|
+ STORAGE_BUFFER_USAGE_DISPATCH_INDIRECT = 1,
|
|
|
};
|
|
|
|
|
|
virtual RID uniform_buffer_create(uint32_t p_size_bytes, const Vector<uint8_t> &p_data = Vector<uint8_t>()) = 0;
|
|
|
- virtual RID storage_buffer_create(uint32_t p_size, const Vector<uint8_t> &p_data = Vector<uint8_t>(), uint32_t p_usage = 0) = 0;
|
|
|
+ virtual RID storage_buffer_create(uint32_t p_size, const Vector<uint8_t> &p_data = Vector<uint8_t>(), BitField<StorageBufferUsage> p_usage = 0) = 0;
|
|
|
virtual RID texture_buffer_create(uint32_t p_size_elements, DataFormat p_format, const Vector<uint8_t> &p_data = Vector<uint8_t>()) = 0;
|
|
|
|
|
|
struct Uniform {
|
|
@@ -1385,7 +1385,7 @@ VARIANT_ENUM_CAST(RenderingDevice::SamplerRepeatMode)
|
|
|
VARIANT_ENUM_CAST(RenderingDevice::SamplerBorderColor)
|
|
|
VARIANT_ENUM_CAST(RenderingDevice::VertexFrequency)
|
|
|
VARIANT_ENUM_CAST(RenderingDevice::IndexBufferFormat)
|
|
|
-VARIANT_ENUM_CAST(RenderingDevice::StorageBufferUsage)
|
|
|
+VARIANT_BITFIELD_CAST(RenderingDevice::StorageBufferUsage)
|
|
|
VARIANT_ENUM_CAST(RenderingDevice::UniformType)
|
|
|
VARIANT_ENUM_CAST(RenderingDevice::RenderPrimitive)
|
|
|
VARIANT_ENUM_CAST(RenderingDevice::PolygonCullMode)
|