Lines Matching refs:samplerState
29 GrVkSampler* GrVkSampler::Create(GrVkGpu* gpu, const GrSamplerState& samplerState, in Create() argument
47 createInfo.magFilter = vkMagFilterModes[static_cast<int>(samplerState.filter())]; in Create()
48 createInfo.minFilter = vkMinFilterModes[static_cast<int>(samplerState.filter())]; in Create()
50 createInfo.addressModeU = wrap_mode_to_vk_sampler_address(samplerState.wrapModeX()); in Create()
51 createInfo.addressModeV = wrap_mode_to_vk_sampler_address(samplerState.wrapModeY()); in Create()
64 bool useMipMaps = GrSamplerState::Filter::kMipMap == samplerState.filter(); in Create()
112 return new GrVkSampler(sampler, ycbcrConversion, GenerateKey(samplerState, ycbcrInfo)); in Create()
129 GrVkSampler::Key GrVkSampler::GenerateKey(const GrSamplerState& samplerState, in GenerateKey() argument
134 SkASSERT(static_cast<int>(samplerState.filter()) <= 3); in GenerateKey()
135 uint8_t samplerKey = static_cast<uint16_t>(samplerState.filter()); in GenerateKey()
137 SkASSERT(static_cast<int>(samplerState.wrapModeX()) <= 3); in GenerateKey()
138 samplerKey |= (static_cast<uint8_t>(samplerState.wrapModeX()) << kTileModeXShift); in GenerateKey()
140 SkASSERT(static_cast<int>(samplerState.wrapModeY()) <= 3); in GenerateKey()
141 samplerKey |= (static_cast<uint8_t>(samplerState.wrapModeY()) << kTileModeYShift); in GenerateKey()