2012-12-05 21:01:47 +01:00
|
|
|
/*
|
2015-01-15 17:19:03 +01:00
|
|
|
* Copyright 2012, 2015 Henri Verbeet for CodeWeavers
|
2012-12-05 21:01:47 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include "wine/port.h"
|
|
|
|
|
|
|
|
#include "wined3d_private.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(d3d);
|
|
|
|
|
|
|
|
ULONG CDECL wined3d_sampler_incref(struct wined3d_sampler *sampler)
|
|
|
|
{
|
|
|
|
ULONG refcount = InterlockedIncrement(&sampler->refcount);
|
|
|
|
|
|
|
|
TRACE("%p increasing refcount to %u.\n", sampler, refcount);
|
|
|
|
|
|
|
|
return refcount;
|
|
|
|
}
|
|
|
|
|
2016-06-22 10:39:00 +02:00
|
|
|
ULONG CDECL wined3d_sampler_decref(struct wined3d_sampler *sampler)
|
|
|
|
{
|
|
|
|
ULONG refcount = InterlockedDecrement(&sampler->refcount);
|
|
|
|
|
2012-12-05 21:01:47 +01:00
|
|
|
TRACE("%p decreasing refcount to %u.\n", sampler, refcount);
|
|
|
|
|
|
|
|
if (!refcount)
|
2017-04-26 13:19:54 +02:00
|
|
|
{
|
|
|
|
sampler->parent_ops->wined3d_object_destroyed(sampler->parent);
|
2019-08-14 14:04:39 +02:00
|
|
|
sampler->device->adapter->adapter_ops->adapter_destroy_sampler(sampler);
|
2017-04-26 13:19:54 +02:00
|
|
|
}
|
2012-12-05 21:01:47 +01:00
|
|
|
|
|
|
|
return refcount;
|
|
|
|
}
|
|
|
|
|
|
|
|
void * CDECL wined3d_sampler_get_parent(const struct wined3d_sampler *sampler)
|
|
|
|
{
|
|
|
|
TRACE("sampler %p.\n", sampler);
|
|
|
|
|
|
|
|
return sampler->parent;
|
|
|
|
}
|
|
|
|
|
2019-08-14 14:04:39 +02:00
|
|
|
static void wined3d_sampler_init(struct wined3d_sampler *sampler, struct wined3d_device *device,
|
|
|
|
const struct wined3d_sampler_desc *desc, void *parent, const struct wined3d_parent_ops *parent_ops)
|
|
|
|
{
|
|
|
|
TRACE("sampler %p, device %p, desc %p, parent %p, parent_ops %p.\n",
|
|
|
|
sampler, device, desc, parent, parent_ops);
|
|
|
|
|
|
|
|
sampler->refcount = 1;
|
|
|
|
sampler->device = device;
|
|
|
|
sampler->parent = parent;
|
|
|
|
sampler->parent_ops = parent_ops;
|
|
|
|
sampler->desc = *desc;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void wined3d_sampler_gl_cs_init(void *object)
|
2012-12-05 21:01:47 +01:00
|
|
|
{
|
2019-08-15 11:49:59 +02:00
|
|
|
struct wined3d_sampler_gl *sampler_gl = object;
|
2017-02-16 00:58:53 +01:00
|
|
|
const struct wined3d_sampler_desc *desc;
|
2015-01-15 17:19:06 +01:00
|
|
|
const struct wined3d_gl_info *gl_info;
|
|
|
|
struct wined3d_context *context;
|
2019-08-15 11:49:59 +02:00
|
|
|
GLuint name;
|
2015-01-15 17:19:06 +01:00
|
|
|
|
2019-08-15 11:49:59 +02:00
|
|
|
context = context_acquire(sampler_gl->s.device, NULL, 0);
|
2019-08-07 13:41:58 +02:00
|
|
|
gl_info = wined3d_context_gl(context)->gl_info;
|
2015-01-15 17:19:06 +01:00
|
|
|
|
2019-08-15 11:49:59 +02:00
|
|
|
desc = &sampler_gl->s.desc;
|
|
|
|
GL_EXTCALL(glGenSamplers(1, &name));
|
|
|
|
GL_EXTCALL(glSamplerParameteri(name, GL_TEXTURE_WRAP_S,
|
2015-01-15 17:19:06 +01:00
|
|
|
gl_info->wrap_lookup[desc->address_u - WINED3D_TADDRESS_WRAP]));
|
2019-08-15 11:49:59 +02:00
|
|
|
GL_EXTCALL(glSamplerParameteri(name, GL_TEXTURE_WRAP_T,
|
2015-01-15 17:19:06 +01:00
|
|
|
gl_info->wrap_lookup[desc->address_v - WINED3D_TADDRESS_WRAP]));
|
2019-08-15 11:49:59 +02:00
|
|
|
GL_EXTCALL(glSamplerParameteri(name, GL_TEXTURE_WRAP_R,
|
2015-01-15 17:19:06 +01:00
|
|
|
gl_info->wrap_lookup[desc->address_w - WINED3D_TADDRESS_WRAP]));
|
2019-08-15 11:49:59 +02:00
|
|
|
GL_EXTCALL(glSamplerParameterfv(name, GL_TEXTURE_BORDER_COLOR, &desc->border_color[0]));
|
|
|
|
GL_EXTCALL(glSamplerParameteri(name, GL_TEXTURE_MAG_FILTER,
|
2015-01-15 17:19:06 +01:00
|
|
|
wined3d_gl_mag_filter(desc->mag_filter)));
|
2019-08-15 11:49:59 +02:00
|
|
|
GL_EXTCALL(glSamplerParameteri(name, GL_TEXTURE_MIN_FILTER,
|
2015-01-15 17:19:06 +01:00
|
|
|
wined3d_gl_min_mip_filter(desc->min_filter, desc->mip_filter)));
|
2019-08-15 11:49:59 +02:00
|
|
|
GL_EXTCALL(glSamplerParameterf(name, GL_TEXTURE_LOD_BIAS, desc->lod_bias));
|
|
|
|
GL_EXTCALL(glSamplerParameterf(name, GL_TEXTURE_MIN_LOD, desc->min_lod));
|
|
|
|
GL_EXTCALL(glSamplerParameterf(name, GL_TEXTURE_MAX_LOD, desc->max_lod));
|
2017-09-15 15:12:28 +02:00
|
|
|
if (gl_info->supported[ARB_TEXTURE_FILTER_ANISOTROPIC])
|
2019-08-15 11:49:59 +02:00
|
|
|
GL_EXTCALL(glSamplerParameteri(name, GL_TEXTURE_MAX_ANISOTROPY, desc->max_anisotropy));
|
2015-01-15 17:19:06 +01:00
|
|
|
if (desc->compare)
|
2019-08-15 11:49:59 +02:00
|
|
|
GL_EXTCALL(glSamplerParameteri(name, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_R_TO_TEXTURE));
|
|
|
|
GL_EXTCALL(glSamplerParameteri(name, GL_TEXTURE_COMPARE_FUNC,
|
2015-01-15 17:19:06 +01:00
|
|
|
wined3d_gl_compare_func(desc->comparison_func)));
|
2016-02-12 11:06:09 +01:00
|
|
|
if ((context->d3d_info->wined3d_creation_flags & WINED3D_SRGB_READ_WRITE_CONTROL)
|
|
|
|
&& gl_info->supported[EXT_TEXTURE_SRGB_DECODE] && !desc->srgb_decode)
|
2019-08-15 11:49:59 +02:00
|
|
|
GL_EXTCALL(glSamplerParameteri(name, GL_TEXTURE_SRGB_DECODE_EXT, GL_SKIP_DECODE_EXT));
|
2015-01-15 17:19:06 +01:00
|
|
|
checkGLcall("sampler creation");
|
|
|
|
|
2019-08-15 11:49:59 +02:00
|
|
|
TRACE("Created sampler %u.\n", name);
|
|
|
|
sampler_gl->name = name;
|
2015-01-15 17:19:06 +01:00
|
|
|
|
|
|
|
context_release(context);
|
2012-12-05 21:01:47 +01:00
|
|
|
}
|
|
|
|
|
2019-08-15 11:49:59 +02:00
|
|
|
void wined3d_sampler_gl_init(struct wined3d_sampler_gl *sampler_gl, struct wined3d_device *device,
|
2017-04-26 13:19:54 +02:00
|
|
|
const struct wined3d_sampler_desc *desc, void *parent, const struct wined3d_parent_ops *parent_ops)
|
2017-02-16 00:58:53 +01:00
|
|
|
{
|
2019-08-14 14:04:39 +02:00
|
|
|
TRACE("sampler_gl %p, device %p, desc %p, parent %p, parent_ops %p.\n",
|
|
|
|
sampler_gl, device, desc, parent, parent_ops);
|
|
|
|
|
2019-08-15 11:49:59 +02:00
|
|
|
wined3d_sampler_init(&sampler_gl->s, device, desc, parent, parent_ops);
|
2017-03-20 12:13:03 +01:00
|
|
|
|
|
|
|
if (device->adapter->gl_info.supported[ARB_SAMPLER_OBJECTS])
|
2019-08-14 14:04:39 +02:00
|
|
|
wined3d_cs_init_object(device->cs, wined3d_sampler_gl_cs_init, sampler_gl);
|
|
|
|
}
|
|
|
|
|
2020-05-01 12:36:20 +02:00
|
|
|
static VkFilter vk_filter_from_wined3d(enum wined3d_texture_filter_type f)
|
|
|
|
{
|
|
|
|
switch (f)
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
ERR("Invalid filter type %#x.\n", f);
|
|
|
|
case WINED3D_TEXF_POINT:
|
|
|
|
return VK_FILTER_NEAREST;
|
|
|
|
case WINED3D_TEXF_LINEAR:
|
|
|
|
return VK_FILTER_LINEAR;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static VkSamplerMipmapMode vk_mipmap_mode_from_wined3d(enum wined3d_texture_filter_type f)
|
|
|
|
{
|
|
|
|
switch (f)
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
ERR("Invalid filter type %#x.\n", f);
|
|
|
|
case WINED3D_TEXF_NONE:
|
|
|
|
case WINED3D_TEXF_POINT:
|
|
|
|
return VK_SAMPLER_MIPMAP_MODE_NEAREST;
|
|
|
|
case WINED3D_TEXF_LINEAR:
|
|
|
|
return VK_SAMPLER_MIPMAP_MODE_LINEAR;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static VkSamplerAddressMode vk_address_mode_from_wined3d(enum wined3d_texture_address a)
|
|
|
|
{
|
|
|
|
switch (a)
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
ERR("Invalid address mode %#x.\n", a);
|
|
|
|
case WINED3D_TADDRESS_WRAP:
|
|
|
|
return VK_SAMPLER_ADDRESS_MODE_REPEAT;
|
|
|
|
case WINED3D_TADDRESS_MIRROR:
|
|
|
|
return VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT;
|
|
|
|
case WINED3D_TADDRESS_CLAMP:
|
|
|
|
return VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE;
|
|
|
|
case WINED3D_TADDRESS_BORDER:
|
|
|
|
return VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER;
|
|
|
|
case WINED3D_TADDRESS_MIRROR_ONCE:
|
|
|
|
return VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void wined3d_sampler_vk_cs_init(void *object)
|
|
|
|
{
|
|
|
|
struct wined3d_sampler_vk *sampler_vk = object;
|
|
|
|
const struct wined3d_sampler_desc *desc;
|
|
|
|
const struct wined3d_d3d_info *d3d_info;
|
|
|
|
struct VkSamplerCreateInfo sampler_desc;
|
|
|
|
const struct wined3d_vk_info *vk_info;
|
|
|
|
struct wined3d_context_vk *context_vk;
|
|
|
|
struct wined3d_device_vk *device_vk;
|
|
|
|
VkSampler vk_sampler;
|
|
|
|
VkResult vr;
|
|
|
|
|
|
|
|
context_vk = wined3d_context_vk(context_acquire(sampler_vk->s.device, NULL, 0));
|
|
|
|
device_vk = wined3d_device_vk(context_vk->c.device);
|
|
|
|
d3d_info = context_vk->c.d3d_info;
|
|
|
|
vk_info = context_vk->vk_info;
|
|
|
|
|
|
|
|
desc = &sampler_vk->s.desc;
|
|
|
|
sampler_desc.sType = VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO;
|
|
|
|
sampler_desc.pNext = NULL;
|
|
|
|
sampler_desc.flags = 0;
|
|
|
|
sampler_desc.magFilter = vk_filter_from_wined3d(desc->mag_filter);
|
|
|
|
sampler_desc.minFilter = vk_filter_from_wined3d(desc->min_filter);
|
|
|
|
sampler_desc.mipmapMode = vk_mipmap_mode_from_wined3d(desc->mip_filter);
|
|
|
|
sampler_desc.addressModeU = vk_address_mode_from_wined3d(desc->address_u);
|
|
|
|
sampler_desc.addressModeV = vk_address_mode_from_wined3d(desc->address_v);
|
|
|
|
sampler_desc.addressModeW = vk_address_mode_from_wined3d(desc->address_w);
|
|
|
|
sampler_desc.mipLodBias = desc->lod_bias;
|
|
|
|
sampler_desc.anisotropyEnable = desc->max_anisotropy != 1;
|
|
|
|
sampler_desc.maxAnisotropy = desc->max_anisotropy;
|
|
|
|
sampler_desc.compareEnable = desc->compare;
|
|
|
|
sampler_desc.compareOp = vk_compare_op_from_wined3d(desc->comparison_func);
|
|
|
|
sampler_desc.minLod = desc->min_lod;
|
|
|
|
sampler_desc.maxLod = desc->max_lod;
|
|
|
|
sampler_desc.borderColor = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK;
|
|
|
|
sampler_desc.unnormalizedCoordinates = VK_FALSE;
|
|
|
|
|
|
|
|
if ((desc->address_u == WINED3D_TADDRESS_BORDER || desc->address_v == WINED3D_TADDRESS_BORDER
|
|
|
|
|| desc->address_w == WINED3D_TADDRESS_BORDER)
|
|
|
|
&& (desc->border_color[0] != 0.0f || desc->border_color[1] != 0.0f
|
|
|
|
|| desc->border_color[2] != 0.0f || desc->border_color[3] != 0.0f))
|
|
|
|
FIXME("Unhandled border colour {%.8e, %.8e, %.8e, %.8e}.\n",
|
|
|
|
desc->border_color[0], desc->border_color[1],
|
|
|
|
desc->border_color[2], desc->border_color[3]);
|
|
|
|
if (desc->mip_base_level)
|
|
|
|
FIXME("Unhandled mip_base_level %u.\n", desc->mip_base_level);
|
|
|
|
if ((d3d_info->wined3d_creation_flags & WINED3D_SRGB_READ_WRITE_CONTROL) && !desc->srgb_decode)
|
|
|
|
FIXME("Unhandled srgb_decode %#x.\n", desc->srgb_decode);
|
|
|
|
|
|
|
|
vr = VK_CALL(vkCreateSampler(device_vk->vk_device, &sampler_desc, NULL, &vk_sampler));
|
|
|
|
context_release(&context_vk->c);
|
|
|
|
if (vr < 0)
|
|
|
|
{
|
|
|
|
ERR("Failed to create Vulkan sampler, vr %s.\n", wined3d_debug_vkresult(vr));
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
TRACE("Created sampler 0x%s.\n", wine_dbgstr_longlong(vk_sampler));
|
|
|
|
|
|
|
|
sampler_vk->vk_image_info.sampler = vk_sampler;
|
|
|
|
sampler_vk->vk_image_info.imageView = VK_NULL_HANDLE;
|
|
|
|
sampler_vk->vk_image_info.imageLayout = VK_IMAGE_LAYOUT_UNDEFINED;
|
|
|
|
}
|
|
|
|
|
|
|
|
void wined3d_sampler_vk_init(struct wined3d_sampler_vk *sampler_vk, struct wined3d_device *device,
|
2019-08-14 14:04:39 +02:00
|
|
|
const struct wined3d_sampler_desc *desc, void *parent, const struct wined3d_parent_ops *parent_ops)
|
|
|
|
{
|
|
|
|
TRACE("sampler_vk %p, device %p, desc %p, parent %p, parent_ops %p.\n",
|
|
|
|
sampler_vk, device, desc, parent, parent_ops);
|
|
|
|
|
2020-05-01 12:36:20 +02:00
|
|
|
wined3d_sampler_init(&sampler_vk->s, device, desc, parent, parent_ops);
|
|
|
|
wined3d_cs_init_object(device->cs, wined3d_sampler_vk_cs_init, sampler_vk);
|
2017-02-16 00:58:53 +01:00
|
|
|
}
|
|
|
|
|
2015-01-15 17:19:06 +01:00
|
|
|
HRESULT CDECL wined3d_sampler_create(struct wined3d_device *device, const struct wined3d_sampler_desc *desc,
|
2017-04-26 13:19:54 +02:00
|
|
|
void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_sampler **sampler)
|
2012-12-05 21:01:47 +01:00
|
|
|
{
|
2019-08-14 14:04:39 +02:00
|
|
|
TRACE("device %p, desc %p, parent %p, parent_ops %p, sampler %p.\n",
|
|
|
|
device, desc, parent, parent_ops, sampler);
|
2015-01-15 17:19:06 +01:00
|
|
|
|
|
|
|
if (desc->address_u < WINED3D_TADDRESS_WRAP || desc->address_u > WINED3D_TADDRESS_MIRROR_ONCE
|
|
|
|
|| desc->address_v < WINED3D_TADDRESS_WRAP || desc->address_v > WINED3D_TADDRESS_MIRROR_ONCE
|
|
|
|
|| desc->address_w < WINED3D_TADDRESS_WRAP || desc->address_w > WINED3D_TADDRESS_MIRROR_ONCE)
|
|
|
|
return WINED3DERR_INVALIDCALL;
|
|
|
|
|
|
|
|
if (desc->mag_filter < WINED3D_TEXF_POINT || desc->mag_filter > WINED3D_TEXF_LINEAR
|
|
|
|
|| desc->min_filter < WINED3D_TEXF_POINT || desc->min_filter > WINED3D_TEXF_LINEAR
|
|
|
|
|| desc->mip_filter > WINED3D_TEXF_LINEAR)
|
|
|
|
return WINED3DERR_INVALIDCALL;
|
2012-12-05 21:01:47 +01:00
|
|
|
|
2019-08-14 14:04:39 +02:00
|
|
|
return device->adapter->adapter_ops->adapter_create_sampler(device, desc, parent, parent_ops, sampler);
|
2012-12-05 21:01:47 +01:00
|
|
|
}
|
2017-03-20 12:13:06 +01:00
|
|
|
|
2018-10-30 10:48:43 +01:00
|
|
|
static void texture_gl_apply_base_level(struct wined3d_texture_gl *texture_gl,
|
2017-03-20 12:13:08 +01:00
|
|
|
const struct wined3d_sampler_desc *desc, const struct wined3d_gl_info *gl_info)
|
|
|
|
{
|
|
|
|
struct gl_texture *gl_tex;
|
|
|
|
unsigned int base_level;
|
|
|
|
|
2018-10-30 10:48:43 +01:00
|
|
|
if (texture_gl->t.flags & WINED3D_TEXTURE_COND_NP2)
|
2017-03-20 12:13:08 +01:00
|
|
|
base_level = 0;
|
|
|
|
else if (desc->mip_filter == WINED3D_TEXF_NONE)
|
2018-10-30 10:48:43 +01:00
|
|
|
base_level = texture_gl->t.lod;
|
2017-03-20 12:13:08 +01:00
|
|
|
else
|
2018-10-30 10:48:43 +01:00
|
|
|
base_level = min(max(desc->mip_base_level, texture_gl->t.lod), texture_gl->t.level_count - 1);
|
2017-03-20 12:13:08 +01:00
|
|
|
|
2018-10-30 10:48:43 +01:00
|
|
|
gl_tex = wined3d_texture_gl_get_gl_texture(texture_gl, texture_gl->t.flags & WINED3D_TEXTURE_IS_SRGB);
|
2017-03-20 12:13:08 +01:00
|
|
|
if (base_level != gl_tex->base_level)
|
|
|
|
{
|
|
|
|
/* Note that WINED3D_SAMP_MAX_MIP_LEVEL specifies the largest mipmap
|
|
|
|
* (default 0), while GL_TEXTURE_MAX_LEVEL specifies the smallest
|
|
|
|
* mipmap used (default 1000). So WINED3D_SAMP_MAX_MIP_LEVEL
|
|
|
|
* corresponds to GL_TEXTURE_BASE_LEVEL. */
|
2018-10-30 10:48:44 +01:00
|
|
|
gl_info->gl_ops.gl.p_glTexParameteri(texture_gl->target, GL_TEXTURE_BASE_LEVEL, base_level);
|
2017-03-20 12:13:08 +01:00
|
|
|
gl_tex->base_level = base_level;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-20 12:13:06 +01:00
|
|
|
/* This function relies on the correct texture being bound and loaded. */
|
2019-08-15 11:49:59 +02:00
|
|
|
void wined3d_sampler_gl_bind(struct wined3d_sampler_gl *sampler_gl, unsigned int unit,
|
2019-06-13 13:40:36 +02:00
|
|
|
struct wined3d_texture_gl *texture_gl, const struct wined3d_context_gl *context_gl)
|
2017-03-20 12:13:06 +01:00
|
|
|
{
|
2019-08-07 13:41:58 +02:00
|
|
|
const struct wined3d_gl_info *gl_info = context_gl->gl_info;
|
2017-03-20 12:13:06 +01:00
|
|
|
|
|
|
|
if (gl_info->supported[ARB_SAMPLER_OBJECTS])
|
|
|
|
{
|
2019-08-15 11:49:59 +02:00
|
|
|
GL_EXTCALL(glBindSampler(unit, sampler_gl->name));
|
2017-03-20 12:13:06 +01:00
|
|
|
checkGLcall("bind sampler");
|
|
|
|
}
|
2018-10-30 10:48:43 +01:00
|
|
|
else if (texture_gl)
|
2017-03-20 12:13:06 +01:00
|
|
|
{
|
2019-08-15 11:49:59 +02:00
|
|
|
wined3d_texture_gl_apply_sampler_desc(texture_gl, &sampler_gl->s.desc, context_gl);
|
2017-03-20 12:13:06 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
ERR("Could not apply sampler state.\n");
|
|
|
|
}
|
2017-03-20 12:13:08 +01:00
|
|
|
|
2018-10-30 10:48:43 +01:00
|
|
|
if (texture_gl)
|
2019-08-15 11:49:59 +02:00
|
|
|
texture_gl_apply_base_level(texture_gl, &sampler_gl->s.desc, gl_info);
|
2017-03-20 12:13:06 +01:00
|
|
|
}
|