Lines Matching refs:samplerState
28 GrVkSampler* GrVkSampler::Create(GrVkGpu* gpu, const GrSamplerState& samplerState, in Create() argument
46 createInfo.magFilter = vkMagFilterModes[static_cast<int>(samplerState.filter())]; in Create()
47 createInfo.minFilter = vkMinFilterModes[static_cast<int>(samplerState.filter())]; in Create()
49 createInfo.addressModeU = wrap_mode_to_vk_sampler_address(samplerState.wrapModeX()); in Create()
50 createInfo.addressModeV = wrap_mode_to_vk_sampler_address(samplerState.wrapModeY()); in Create()
63 bool useMipMaps = GrSamplerState::Filter::kMipMap == samplerState.filter(); in Create()
110 return new GrVkSampler(sampler, ycbcrConversion, GenerateKey(samplerState, ycbcrInfo)); in Create()
127 GrVkSampler::Key GrVkSampler::GenerateKey(const GrSamplerState& samplerState, in GenerateKey() argument
132 SkASSERT(static_cast<int>(samplerState.filter()) <= 3); in GenerateKey()
133 uint8_t samplerKey = static_cast<uint16_t>(samplerState.filter()); in GenerateKey()
135 SkASSERT(static_cast<int>(samplerState.wrapModeX()) <= 3); in GenerateKey()
136 samplerKey |= (static_cast<uint8_t>(samplerState.wrapModeX()) << kTileModeXShift); in GenerateKey()
138 SkASSERT(static_cast<int>(samplerState.wrapModeY()) <= 3); in GenerateKey()
139 samplerKey |= (static_cast<uint8_t>(samplerState.wrapModeY()) << kTileModeYShift); in GenerateKey()