diff options
author | Patrick Dawson <pat@dw.is> | 2022-11-01 18:50:36 +0100 |
---|---|---|
committer | Patrick Dawson <pat@dw.is> | 2022-11-03 05:27:24 +0100 |
commit | 71d8de27635f7d1023ce622ac3c90ed85f59080d (patch) | |
tree | 14a487717c2c51a6a9bed157cbaa5667c8435a58 /drivers/gles3/storage | |
parent | 754552b34d3523a76656940145bd37328536292d (diff) |
Expose texture_get_rd_texture
Diffstat (limited to 'drivers/gles3/storage')
-rw-r--r-- | drivers/gles3/storage/texture_storage.cpp | 4 | ||||
-rw-r--r-- | drivers/gles3/storage/texture_storage.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gles3/storage/texture_storage.cpp b/drivers/gles3/storage/texture_storage.cpp index 11151c4100..19806a3847 100644 --- a/drivers/gles3/storage/texture_storage.cpp +++ b/drivers/gles3/storage/texture_storage.cpp @@ -991,6 +991,10 @@ Size2 TextureStorage::texture_size_with_proxy(RID p_texture) { } } +RID TextureStorage::texture_get_rd_texture_rid(RID p_texture, bool p_srgb) const { + return RID(); +} + void TextureStorage::texture_set_data(RID p_texture, const Ref<Image> &p_image, int p_layer) { Texture *texture = texture_owner.get_or_null(p_texture); diff --git a/drivers/gles3/storage/texture_storage.h b/drivers/gles3/storage/texture_storage.h index 0b025c4370..7668912890 100644 --- a/drivers/gles3/storage/texture_storage.h +++ b/drivers/gles3/storage/texture_storage.h @@ -484,6 +484,8 @@ public: virtual Size2 texture_size_with_proxy(RID p_proxy) override; + virtual RID texture_get_rd_texture_rid(RID p_texture, bool p_srgb = false) const override; + void texture_set_data(RID p_texture, const Ref<Image> &p_image, int p_layer = 0); void texture_set_data_partial(RID p_texture, const Ref<Image> &p_image, int src_x, int src_y, int src_w, int src_h, int dst_x, int dst_y, int p_dst_mip, int p_layer = 0); //Ref<Image> texture_get_data(RID p_texture, int p_layer = 0) const; |