Lines Matching defs:tex

311     sk_sp<GrD3DTexture> tex = this->createD3DTexture(dimensions, dxgiFormat, renderable,
314 if (!tex) {
322 return std::move(tex);
697 bool GrD3DGpu::uploadToTexture(GrD3DTexture* tex,
702 SkASSERT(this->d3dCaps().isFormatTexturable(tex->dxgiFormat()));
704 SkASSERT(mipLevelCount == 1 || rect == SkIRect::MakeSize(tex->dimensions()));
708 SkASSERT(mipLevelCount == 1 || mipLevelCount == (tex->maxMipmapLevel() + 1));
714 SkASSERT(this->d3dCaps().surfaceSupportsWritePixels(tex));
715 SkASSERT(this->d3dCaps().areColorTypeAndFormatCompatible(colorType, tex->backendFormat()));
717 ID3D12Resource* d3dResource = tex->d3dResource();
779 tex,
786 tex->markMipmapsDirty();
939 sk_sp<GrTexture> GrD3DGpu::onWrapBackendTexture(const GrBackendTexture& tex,
944 if (!tex.getD3DTextureResourceInfo(&textureInfo)) {
957 if (tex.isProtected()) {
961 sk_sp<GrD3DResourceState> state = tex.getGrD3DResourceState();
963 return GrD3DTexture::MakeWrappedTexture(this, tex.dimensions(), wrapType, ioType, textureInfo,
967 sk_sp<GrTexture> GrD3DGpu::onWrapCompressedBackendTexture(const GrBackendTexture& tex,
970 return this->onWrapBackendTexture(tex, ownership, wrapType, kRead_GrIOType);
973 sk_sp<GrTexture> GrD3DGpu::onWrapRenderableBackendTexture(const GrBackendTexture& tex,
978 if (!tex.getD3DTextureResourceInfo(&textureInfo)) {
994 if (tex.isProtected()) {
1000 sk_sp<GrD3DResourceState> state = tex.getGrD3DResourceState();
1003 return GrD3DTextureRenderTarget::MakeWrappedTextureRenderTarget(this, tex.dimensions(),
1056 bool GrD3DGpu::onRegenerateMipMapLevels(GrTexture * tex) {
1057 auto * d3dTex = static_cast<GrD3DTexture*>(tex);
1058 SkASSERT(tex->textureType() == GrTextureType::k2D);
1059 int width = tex->width();
1060 int height = tex->height();
1101 GrProtected grProtected = tex->isProtected() ? GrProtected::kYes : GrProtected::kNo;
1102 uavTexture = GrD3DTexture::MakeNewTexture(this, SkBudgeted::kNo, tex->dimensions(),
1134 SkASSERT((int)levelCount == SkMipmap::ComputeLevelCount(tex->width(), tex->height()) + 1);
1587 void GrD3DGpu::deleteBackendTexture(const GrBackendTexture& tex) {
1588 SkASSERT(GrBackendApi::kDirect3D == tex.fBackend);
1597 bool GrD3DGpu::isTestingOnlyBackendTexture(const GrBackendTexture& tex) const {
1598 SkASSERT(GrBackendApi::kDirect3D == tex.backend());
1601 if (!tex.getD3DTextureResourceInfo(&info)) {
1687 if (GrTexture* tex = proxy->peekTexture()) {
1688 resource = static_cast<GrD3DTexture*>(tex);