Lines Matching refs:GrSamplerState
124 static D3D12_TEXTURE_ADDRESS_MODE wrap_mode_to_d3d_address_mode(GrSamplerState::WrapMode wrapMode) { in wrap_mode_to_d3d_address_mode()
126 case GrSamplerState::WrapMode::kClamp: in wrap_mode_to_d3d_address_mode()
128 case GrSamplerState::WrapMode::kRepeat: in wrap_mode_to_d3d_address_mode()
130 case GrSamplerState::WrapMode::kMirrorRepeat: in wrap_mode_to_d3d_address_mode()
132 case GrSamplerState::WrapMode::kClampToBorder: in wrap_mode_to_d3d_address_mode()
138 static D3D12_FILTER d3d_filter(GrSamplerState sampler) { in d3d_filter()
141 case GrSamplerState::MipmapMode::kNone: in d3d_filter()
142 case GrSamplerState::MipmapMode::kNearest: in d3d_filter()
144 case GrSamplerState::Filter::kNearest: return D3D12_FILTER_MIN_MAG_MIP_POINT; in d3d_filter()
145 case GrSamplerState::Filter::kLinear: return D3D12_FILTER_MIN_MAG_LINEAR_MIP_POINT; in d3d_filter()
148 case GrSamplerState::MipmapMode::kLinear: in d3d_filter()
150 case GrSamplerState::Filter::kNearest: return D3D12_FILTER_MIN_MAG_POINT_MIP_LINEAR; in d3d_filter()
151 case GrSamplerState::Filter::kLinear: return D3D12_FILTER_MIN_MAG_MIP_LINEAR; in d3d_filter()
159 const GrSamplerState& params) { in findOrCreateCompatibleSampler()