Lines Matching defs:tex
280 sk_sp<GrTexture> GrDawnGpu::onWrapRenderableBackendTexture(const GrBackendTexture& tex,
285 if (!tex.getDawnTextureInfo(&info) || !info.fTexture) {
289 SkISize dimensions = { tex.width(), tex.height() };
290 sampleCnt = this->caps()->getRenderTargetSampleCount(sampleCnt, tex.getBackendFormat());
347 wgpu::Texture tex = this->device().CreateTexture(&desc);
350 info.fTexture = tex;
461 void GrDawnGpu::deleteBackendTexture(const GrBackendTexture& tex) {
463 if (tex.getDawnTextureInfo(&info)) {
473 bool GrDawnGpu::isTestingOnlyBackendTexture(const GrBackendTexture& tex) const {
475 if (!tex.getDawnTextureInfo(&info)) {
515 wgpu::Texture tex = this->device().CreateTexture(&desc);
518 info.fTextureView = tex.CreateView();
626 wgpu::Texture tex = get_dawn_texture_from_surface(surface);
628 if (!tex || 0 == rowBytes) {
643 srcTexture.texture = tex;
678 bool GrDawnGpu::onRegenerateMipMapLevels(GrTexture* tex) {
680 GrDawnTexture* src = static_cast<GrDawnTexture*>(tex);
681 int srcWidth = tex->width();
682 int srcHeight = tex->height();
685 uint32_t levelCount = SkMipmap::ComputeLevelCount(tex->width(), tex->height()) + 1;
693 texDesc.size.width = (tex->width() + 1) / 2;
694 texDesc.size.height = (tex->height() + 1) / 2;
721 "layout(set = 0, binding = 1) uniform texture2D tex;\n"
724 " sk_FragColor = sample(makeSampler2D(tex, samp), texCoord);\n"
737 colorTargetState.format = static_cast<GrDawnTexture*>(tex)->format();
764 dstViewDesc.format = static_cast<GrDawnTexture*>(tex)->format();