Cleanup: GPU: Remove unused gl_bindcode_get function

_No response_

Pull Request: https://projects.blender.org/blender/blender/pulls/146471
This commit is contained in:
Clément Foucault
2025-09-22 11:56:40 +02:00
committed by Clément Foucault
parent 2ce3df1475
commit 759e85c3ff
7 changed files with 0 additions and 30 deletions

View File

@@ -165,8 +165,6 @@ class Texture {
eGPUDataFormat format,
GPUPixelBuffer *pixbuf) = 0;
/* TODO(fclem): Legacy. Should be removed at some point. */
virtual uint gl_bindcode_get() const = 0;
int width_get() const
{
return w_;

View File

@@ -288,9 +288,6 @@ class MTLTexture : public Texture {
void mip_range_set(int min, int max) override;
void *read(int mip, eGPUDataFormat type) override;
/* Remove once no longer required -- will just return 0 for now in MTL path. */
uint gl_bindcode_get() const override;
bool is_format_srgb();
bool texture_is_baked();
const char *get_name()

View File

@@ -2027,12 +2027,6 @@ void gpu::MTLTexture::read_internal(int mip,
}
}
/* Remove once no longer required -- will just return 0 for now in MTL path. */
uint gpu::MTLTexture::gl_bindcode_get() const
{
return 0;
}
bool gpu::MTLTexture::init_internal()
{
this->prepare_internal();

View File

@@ -747,13 +747,6 @@ void GLTexture::check_feedback_loop()
}
}
uint GLTexture::gl_bindcode_get() const
{
/* TODO(fclem): Legacy. Should be removed at some point. */
return tex_id_;
}
/* -------------------------------------------------------------------- */
/** \name Pixel Buffer
* \{ */

View File

@@ -80,9 +80,6 @@ class GLTexture : public Texture {
void check_feedback_loop();
/* TODO(fclem): Legacy. Should be removed at some point. */
uint gl_bindcode_get() const override;
/**
* Pre-generate, setup all possible samplers and cache them in the samplers_state_cache_ and
* custom_samplers_state_cache_ arrays. This is done to avoid the runtime cost associated with

View File

@@ -472,13 +472,6 @@ void VKTexture::update_sub(int offset[3],
update_sub(0, offset, extent, format, nullptr, &pixel_buffer);
}
uint VKTexture::gl_bindcode_get() const
{
/* TODO(fclem): Legacy. Should be removed at some point. */
return 0;
}
VKMemoryExport VKTexture::export_memory(VkExternalMemoryHandleTypeFlagBits handle_type)
{
const VKDevice &device = VKBackend::get().device;

View File

@@ -105,8 +105,6 @@ class VKTexture : public Texture {
eGPUDataFormat format,
GPUPixelBuffer *pixbuf) override;
/* TODO(fclem): Legacy. Should be removed at some point. */
uint gl_bindcode_get() const override;
/**
* Export the memory associated with this texture to be imported by a different
* API/Process/Instance.