You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Validate another case of using DATA_FORMAT_A2B10G10R10_UNORM_PACK32 texture with storage flag
This commit is contained in:
@@ -1648,7 +1648,10 @@ void SkyRD::update_dirty_skys() {
|
|||||||
tf.mipmaps = MIN(mipmaps, layers);
|
tf.mipmaps = MIN(mipmaps, layers);
|
||||||
tf.width = w;
|
tf.width = w;
|
||||||
tf.height = h;
|
tf.height = h;
|
||||||
tf.usage_bits = RD::TEXTURE_USAGE_COLOR_ATTACHMENT_BIT | RD::TEXTURE_USAGE_SAMPLING_BIT | RD::TEXTURE_USAGE_STORAGE_BIT;
|
tf.usage_bits = RD::TEXTURE_USAGE_COLOR_ATTACHMENT_BIT | RD::TEXTURE_USAGE_SAMPLING_BIT;
|
||||||
|
if (RendererSceneRenderRD::get_singleton()->_render_buffers_can_be_storage()) {
|
||||||
|
tf.usage_bits |= RD::TEXTURE_USAGE_STORAGE_BIT;
|
||||||
|
}
|
||||||
|
|
||||||
sky->radiance = RD::get_singleton()->texture_create(tf, RD::TextureView());
|
sky->radiance = RD::get_singleton()->texture_create(tf, RD::TextureView());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user