Resolve load and store ops automatically for render passes for discardable textures.
This commit is contained in:
@ -69,6 +69,8 @@ public:
|
||||
RD_SETGET(RD::TextureType, texture_type)
|
||||
RD_SETGET(RD::TextureSamples, samples)
|
||||
RD_SETGET(BitField<RenderingDevice::TextureUsageBits>, usage_bits)
|
||||
RD_SETGET(bool, is_resolve_buffer)
|
||||
RD_SETGET(bool, is_discardable)
|
||||
|
||||
void add_shareable_format(RD::DataFormat p_format) { base.shareable_formats.push_back(p_format); }
|
||||
void remove_shareable_format(RD::DataFormat p_format) { base.shareable_formats.erase(p_format); }
|
||||
@ -84,6 +86,9 @@ protected:
|
||||
RD_BIND(Variant::INT, RDTextureFormat, texture_type);
|
||||
RD_BIND(Variant::INT, RDTextureFormat, samples);
|
||||
RD_BIND(Variant::INT, RDTextureFormat, usage_bits);
|
||||
RD_BIND(Variant::BOOL, RDTextureFormat, is_resolve_buffer);
|
||||
RD_BIND(Variant::BOOL, RDTextureFormat, is_discardable);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("add_shareable_format", "format"), &RDTextureFormat::add_shareable_format);
|
||||
ClassDB::bind_method(D_METHOD("remove_shareable_format", "format"), &RDTextureFormat::remove_shareable_format);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user