Lines Matching refs:samplerState
329 std::size_t RenderStateCache::hashSamplerState(const gl::SamplerState &samplerState)
334 MurmurHash3_x86_32(&samplerState, sizeof(gl::SamplerState), seed, &hash);
343 ID3D11SamplerState *RenderStateCache::getSamplerState(const gl::SamplerState &samplerState)
351 SamplerStateMap::iterator i = mSamplerStateCache.find(samplerState);
378 samplerDesc.Filter = gl_d3d11::ConvertFilter(samplerState.minFilter, samplerState.magFilter, samplerState.maxAnisotropy);
379 samplerDesc.AddressU = gl_d3d11::ConvertTextureWrap(samplerState.wrapS);
380 samplerDesc.AddressV = gl_d3d11::ConvertTextureWrap(samplerState.wrapT);
382 samplerDesc.MipLODBias = static_cast<float>(samplerState.lodOffset);
383 samplerDesc.MaxAnisotropy = samplerState.maxAnisotropy;
389 samplerDesc.MinLOD = gl_d3d11::ConvertMinLOD(samplerState.minFilter, samplerState.lodOffset);
390 samplerDesc.MaxLOD = gl_d3d11::ConvertMaxLOD(samplerState.minFilter, samplerState.lodOffset);
400 mSamplerStateCache.insert(std::make_pair(samplerState, std::make_pair(dx11SamplerState, mCounter++)));