/external/skqp/src/gpu/vk/ |
D | GrVkSampler.cpp | 26 GrVkSampler* GrVkSampler::Create(const GrVkGpu* gpu, const GrSamplerState& samplerState, in Create() argument 44 createInfo.magFilter = vkMagFilterModes[static_cast<int>(samplerState.filter())]; in Create() 45 createInfo.minFilter = vkMinFilterModes[static_cast<int>(samplerState.filter())]; in Create() 47 createInfo.addressModeU = wrap_mode_to_vk_sampler_address(samplerState.wrapModeX()); in Create() 48 createInfo.addressModeV = wrap_mode_to_vk_sampler_address(samplerState.wrapModeY()); in Create() 61 bool useMipMaps = GrSamplerState::Filter::kMipMap == samplerState.filter() && maxMipLevel > 0; in Create() 72 return new GrVkSampler(sampler, GenerateKey(samplerState, maxMipLevel)); in Create() 80 uint16_t GrVkSampler::GenerateKey(const GrSamplerState& samplerState, uint32_t maxMipLevel) { in GenerateKey() argument 85 SkASSERT(static_cast<int>(samplerState.filter()) <= 3); in GenerateKey() 86 uint16_t key = static_cast<uint16_t>(samplerState.filter()); in GenerateKey() [all …]
|
/external/skia/src/gpu/vk/ |
D | GrVkSampler.cpp | 26 GrVkSampler* GrVkSampler::Create(const GrVkGpu* gpu, const GrSamplerState& samplerState, in Create() argument 44 createInfo.magFilter = vkMagFilterModes[static_cast<int>(samplerState.filter())]; in Create() 45 createInfo.minFilter = vkMinFilterModes[static_cast<int>(samplerState.filter())]; in Create() 47 createInfo.addressModeU = wrap_mode_to_vk_sampler_address(samplerState.wrapModeX()); in Create() 48 createInfo.addressModeV = wrap_mode_to_vk_sampler_address(samplerState.wrapModeY()); in Create() 61 bool useMipMaps = GrSamplerState::Filter::kMipMap == samplerState.filter() && maxMipLevel > 0; in Create() 72 return new GrVkSampler(sampler, GenerateKey(samplerState, maxMipLevel)); in Create() 80 uint16_t GrVkSampler::GenerateKey(const GrSamplerState& samplerState, uint32_t maxMipLevel) { in GenerateKey() argument 85 SkASSERT(static_cast<int>(samplerState.filter()) <= 3); in GenerateKey() 86 uint16_t key = static_cast<uint16_t>(samplerState.filter()); in GenerateKey() [all …]
|
D | GrVkCopyManager.cpp | 260 GrSamplerState samplerState = GrSamplerState::ClampNearest(); in copySurfaceAsDraw() local 263 samplerState, srcTex->texturePriv().maxMipMapLevel()); in copySurfaceAsDraw()
|
/external/skia/src/gpu/ |
D | GrProcessor.cpp | 203 const GrSamplerState& samplerState) { in TextureSampler() argument 204 this->reset(std::move(proxy), samplerState); in TextureSampler() 215 const GrSamplerState& samplerState, in reset() argument 217 fSamplerState = samplerState; in reset() 219 fSamplerState.setFilterMode(SkTMin(samplerState.filter(), this->proxy()->highestFilterMode())); in reset()
|
D | GrTextureMaker.cpp | 114 GrSamplerState samplerState; in createFragmentProcessor() local 116 samplerState = GrSamplerState(GrSamplerState::WrapMode::kClamp, *filterOrNullForBicubic); in createFragmentProcessor() 119 samplerState = GrSamplerState::ClampNearest(); in createFragmentProcessor() 123 sk_sp<GrTextureProxy> proxy(this->refTextureProxyForParams(samplerState, dstColorSpace, in createFragmentProcessor()
|
D | GrTextureProducer.cpp | 59 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, copyParams.fFilter); in CopyOnGpu() local 60 paint.addColorTextureProcessor(std::move(inputProxy), SkMatrix::I(), samplerState); in CopyOnGpu() 197 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, *filterOrNullForBicubic); in CreateFragmentProcessorForDomainAndFilter() local 198 return GrSimpleTextureEffect::Make(std::move(proxy), textureMatrix, samplerState); in CreateFragmentProcessorForDomainAndFilter()
|
D | GrTextureAdjuster.cpp | 108 GrSamplerState samplerState; in createFragmentProcessor() local 110 samplerState.setFilterMode(*filterOrNullForBicubic); in createFragmentProcessor() 114 this->refTextureProxyForParams(samplerState, nullptr, nullptr, scaleAdjust)); in createFragmentProcessor()
|
D | GrPaint.cpp | 45 const GrSamplerState& samplerState) { in addColorTextureProcessor() argument 47 samplerState)); in addColorTextureProcessor()
|
D | SkGpuDevice.cpp | 758 GrSamplerState samplerState; in shouldTileImage() local 772 samplerState.setFilterMode(textureFilterMode); in shouldTileImage() 781 samplerState, srcRectPtr, maxTileSize, &outTileSize, in shouldTileImage() 809 GrSamplerState samplerState; in drawBitmap() local 824 samplerState.setFilterMode(textureFilterMode); in drawBitmap() 828 SkMatrix::I(), samplerState, &srcRect, maxTileSizeForFilter, in drawBitmap() 831 samplerState, paint, SkCanvas::kStrict_SrcRectConstraint, in drawBitmap() 967 const GrSamplerState& samplerState, in drawBitmapTile() argument 978 SkASSERT(!samplerState.isRepeated()); in drawBitmapTile() 982 GrRefCachedBitmapTextureProxy(fContext.get(), bitmap, samplerState, scales); in drawBitmapTile() [all …]
|
/external/skqp/src/gpu/ |
D | GrProcessor.cpp | 203 const GrSamplerState& samplerState) { in TextureSampler() argument 204 this->reset(std::move(proxy), samplerState); in TextureSampler() 215 const GrSamplerState& samplerState, in reset() argument 217 fSamplerState = samplerState; in reset() 219 fSamplerState.setFilterMode(SkTMin(samplerState.filter(), this->proxy()->highestFilterMode())); in reset()
|
D | GrTextureMaker.cpp | 114 GrSamplerState samplerState; in createFragmentProcessor() local 116 samplerState = GrSamplerState(GrSamplerState::WrapMode::kClamp, *filterOrNullForBicubic); in createFragmentProcessor() 119 samplerState = GrSamplerState::ClampNearest(); in createFragmentProcessor() 123 sk_sp<GrTextureProxy> proxy(this->refTextureProxyForParams(samplerState, dstColorSpace, in createFragmentProcessor()
|
D | GrTextureProducer.cpp | 55 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, copyParams.fFilter); in CopyOnGpu() local 56 paint.addColorTextureProcessor(std::move(inputProxy), SkMatrix::I(), samplerState); in CopyOnGpu() 193 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, *filterOrNullForBicubic); in CreateFragmentProcessorForDomainAndFilter() local 194 return GrSimpleTextureEffect::Make(std::move(proxy), textureMatrix, samplerState); in CreateFragmentProcessorForDomainAndFilter()
|
D | GrTextureAdjuster.cpp | 97 GrSamplerState samplerState; in createFragmentProcessor() local 99 samplerState.setFilterMode(*filterOrNullForBicubic); in createFragmentProcessor() 103 this->refTextureProxySafeForParams(samplerState, scaleAdjust)); in createFragmentProcessor()
|
D | GrPaint.cpp | 45 const GrSamplerState& samplerState) { in addColorTextureProcessor() argument 47 samplerState)); in addColorTextureProcessor()
|
D | SkGpuDevice.cpp | 762 GrSamplerState samplerState; in shouldTileImage() local 775 samplerState.setFilterMode(textureFilterMode); in shouldTileImage() 784 samplerState, srcRectPtr, maxTileSize, &outTileSize, in shouldTileImage() 812 GrSamplerState samplerState; in drawBitmap() local 826 samplerState.setFilterMode(textureFilterMode); in drawBitmap() 830 SkMatrix::I(), samplerState, &srcRect, maxTileSizeForFilter, in drawBitmap() 833 samplerState, paint, SkCanvas::kStrict_SrcRectConstraint, in drawBitmap() 969 const GrSamplerState& samplerState, in drawBitmapTile() argument 980 SkASSERT(!samplerState.isRepeated()); in drawBitmapTile() 983 GrRefCachedBitmapTextureProxy(fContext.get(), bitmap, samplerState, nullptr); in drawBitmapTile() [all …]
|
/external/deqp/modules/glshared/ |
D | glsSamplerObjectTest.hpp | 60 SamplingState samplerState; member 119 SamplingState samplerState; member
|
/external/skia/src/gpu/effects/ |
D | GrDistanceFieldGeoProc.cpp | 285 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate() local 299 samplerState, in TestCreate() 568 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate() local 580 samplerState, in TestCreate() 875 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate() local 886 return GrDistanceFieldLCDTextGeoProc::Make(proxies, 1, samplerState, wa, flags, localMatrix); in TestCreate()
|
D | GrBitmapTextGeoProc.cpp | 195 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate() local 212 return GrBitmapTextGeoProc::Make(GrRandomColor(d->fRandom), proxies, 1, samplerState, in TestCreate()
|
/external/skqp/src/gpu/effects/ |
D | GrDistanceFieldGeoProc.cpp | 277 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate() local 291 samplerState, in TestCreate() 552 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate() local 564 samplerState, in TestCreate() 851 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate() local 862 return GrDistanceFieldLCDTextGeoProc::Make(proxies, samplerState, wa, flags, localMatrix); in TestCreate()
|
D | GrBitmapTextGeoProc.cpp | 187 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate() local 204 return GrBitmapTextGeoProc::Make(GrRandomColor(d->fRandom), proxies, samplerState, in TestCreate()
|
/external/skqp/src/gpu/gl/ |
D | GrGLProgram.cpp | 168 fGpu->bindTexture((*nextTexSamplerIdx)++, sampler.samplerState(), allowSRGBInputs, in bindTextures() 182 fGpu->generateMipmaps(sampler.samplerState(), allowSRGBInputs, in generateMipmaps()
|
/external/skia/src/gpu/gl/ |
D | GrGLProgram.cpp | 168 fGpu->bindTexture((*nextTexSamplerIdx)++, sampler.samplerState(), allowSRGBInputs, in bindTextures() 182 fGpu->generateMipmaps(sampler.samplerState(), allowSRGBInputs, in generateMipmaps()
|
/external/swiftshader/src/D3D9/ |
D | Direct3DStateBlock9.cpp | 183 device->SetSamplerState(index, (D3DSAMPLERSTATETYPE)state, samplerState[sampler][state]); in Apply() 403 device->GetSamplerState(index, (D3DSAMPLERSTATETYPE)state, &samplerState[sampler][state]); in Capture() 719 samplerState[sampler][state] = value; in setSamplerState() 972 device->GetSamplerState(index, state, &samplerState[index][state]); in captureSamplerState() 979 device->GetSamplerState(index, state, &samplerState[sampler][state]); in captureSamplerState()
|
/external/skqp/src/shaders/ |
D | SkImageShader.cpp | 211 GrSamplerState samplerState(wrapModes, textureFilterMode); in asFragmentProcessor() local 215 args.fContext, samplerState, args.fDstColorSpaceInfo->colorSpace(), &texColorSpace, in asFragmentProcessor() 230 inner = GrSimpleTextureEffect::Make(std::move(proxy), lmInverse, samplerState); in asFragmentProcessor()
|
/external/skia/src/shaders/ |
D | SkImageShader.cpp | 255 GrSamplerState samplerState(wrapModes, textureFilterMode); in asFragmentProcessor() local 259 args.fContext, samplerState, args.fDstColorSpaceInfo->colorSpace(), &texColorSpace, in asFragmentProcessor() 274 inner = GrSimpleTextureEffect::Make(std::move(proxy), lmInverse, samplerState); in asFragmentProcessor()
|