31 TRACE(
"%p increasing refcount to %u.\n",
sampler, refcount);
57 TRACE(
"%p decreasing refcount to %u.\n",
sampler, refcount);
123 sampler->parent_ops = parent_ops;
147 if (!(
object = heap_alloc_zero(
sizeof(*
object))))
152 TRACE(
"Created sampler %p.\n",
object);
200 ERR(
"Could not apply sampler state.\n");
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
void wined3d_cs_destroy_object(struct wined3d_cs *cs, void(*callback)(void *object), void *object)
void wined3d_cs_init_object(struct wined3d_cs *cs, void(*callback)(void *object), void *object)
struct wined3d_context * context_acquire(const struct wined3d_device *device, struct wined3d_texture *texture, unsigned int sub_resource_idx)
void context_release(struct wined3d_context *context)
GLenum wined3d_gl_compare_func(enum wined3d_cmp_func f)
void wined3d_texture_apply_sampler_desc(struct wined3d_texture *texture, const struct wined3d_sampler_desc *sampler_desc, const struct wined3d_context *context)
#define GL_TEXTURE_MIN_FILTER
#define GL_TEXTURE_BORDER_COLOR
#define GL_TEXTURE_WRAP_R
#define GL_TEXTURE_WRAP_S
#define GL_TEXTURE_BASE_LEVEL
#define GL_TEXTURE_MAX_LOD
#define GL_TEXTURE_WRAP_T
#define GL_TEXTURE_MAG_FILTER
#define GL_TEXTURE_MIN_LOD
#define GL_SKIP_DECODE_EXT
#define GL_TEXTURE_COMPARE_FUNC
#define GL_COMPARE_R_TO_TEXTURE
#define GL_TEXTURE_LOD_BIAS
#define GL_TEXTURE_SRGB_DECODE_EXT
#define GL_TEXTURE_COMPARE_MODE
static const WCHAR desc[]
png_const_structrp png_const_inforp int * unit
ULONG CDECL wined3d_sampler_incref(struct wined3d_sampler *sampler)
void *CDECL wined3d_sampler_get_parent(const struct wined3d_sampler *sampler)
HRESULT CDECL wined3d_sampler_create(struct wined3d_device *device, const struct wined3d_sampler_desc *desc, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_sampler **sampler)
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)
static void wined3d_sampler_cs_init(void *object)
static void texture_apply_base_level(struct wined3d_texture *texture, const struct wined3d_sampler_desc *desc, const struct wined3d_gl_info *gl_info)
static void wined3d_sampler_destroy_object(void *object)
void wined3d_sampler_bind(struct wined3d_sampler *sampler, unsigned int unit, struct wined3d_texture *texture, const struct wined3d_context *context)
ULONG CDECL wined3d_sampler_decref(struct wined3d_sampler *sampler)
struct wined3d_device * device
const struct wined3d_gl_info * gl_info
BOOL supported[WINED3D_GL_EXT_COUNT]
struct opengl_funcs gl_ops
const struct wined3d_parent_ops * parent_ops
#define GL_TEXTURE_MAX_ANISOTROPY
@ WINED3D_TADDRESS_MIRROR_ONCE
#define WINED3DERR_INVALIDCALL
#define WINED3D_SRGB_READ_WRITE_CONTROL
@ ARB_TEXTURE_FILTER_ANISOTROPIC
@ EXT_TEXTURE_SRGB_DECODE
static GLenum wined3d_gl_mag_filter(enum wined3d_texture_filter_type mag_filter)
#define WINED3D_TEXTURE_COND_NP2
static GLenum wined3d_gl_min_mip_filter(enum wined3d_texture_filter_type min_filter, enum wined3d_texture_filter_type mip_filter)
static struct gl_texture * wined3d_texture_get_gl_texture(struct wined3d_texture *texture, BOOL srgb)
#define WINED3D_TEXTURE_IS_SRGB