8#ifndef GrMtlSampler_DEFINED
9#define GrMtlSampler_DEFINED
11#import <Metal/Metal.h>
26 id<MTLSamplerState>
mtlSampler()
const {
return fMtlSamplerState; }
38#ifdef SK_TRACE_MANAGED_RESOURCES
41 void dumpInfo()
const override {
42 SkDebugf(
"GrMtlSampler: %p (%ld refs)\n", fMtlSamplerState,
43 CFGetRetainCount((CFTypeRef)fMtlSamplerState));
48 fMtlSamplerState = nil;
53 : fMtlSamplerState(mtlSamplerState)
56 mutable id<MTLSamplerState> fMtlSamplerState;
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static uint32_t Hash(const Key &key)
static const Key & GetKey(const GrMtlSampler &sampler)
id< MTLSamplerState > mtlSampler() const
static Key GenerateKey(GrSamplerState)
void freeGPUData() const override
static GrMtlSampler * Create(const GrMtlGpu *gpu, GrSamplerState)
uint32_t Hash32(const void *data, size_t bytes, uint32_t seed)