• Home
  • Raw
  • Download

Lines Matching refs:Texture

102 // Texture implemenetation
104 angle::Result Texture::Make2DTexture(ContextMtl *context,
125 angle::Result Texture::MakeMemoryLess2DTexture(ContextMtl *context,
143 angle::Result Texture::MakeCubeTexture(ContextMtl *context,
163 angle::Result Texture::Make2DMSTexture(ContextMtl *context,
187 angle::Result Texture::Make2DArrayTexture(ContextMtl *context,
214 angle::Result Texture::Make3DTexture(ContextMtl *context,
243 angle::Result Texture::MakeIOSurfaceTexture(ContextMtl *context,
262 angle::Result Texture::MakeTexture(ContextMtl *context,
274 angle::Result Texture::MakeTexture(ContextMtl *context,
287 refOut->reset(new Texture(context, desc, mips, renderTargetOnly, allowFormatView, memoryLess));
301 angle::Result Texture::MakeTexture(ContextMtl *context,
309 refOut->reset(new Texture(context, desc, surfaceRef, slice, renderTargetOnly));
324 TextureRef Texture::MakeFromMetal(id<MTLTexture> metalTexture)
326 ANGLE_MTL_OBJC_SCOPE { return TextureRef(new Texture(metalTexture)); }
329 Texture::Texture(id<MTLTexture> metalTexture)
335 Texture::Texture(ContextMtl *context,
340 : Texture(context, desc, mips, renderTargetOnly, allowFormatView, false)
343 Texture::Texture(ContextMtl *context,
407 Texture::Texture(ContextMtl *context,
447 Texture::Texture(Texture *original, MTLPixelFormat format)
459 Texture::Texture(Texture *original, MTLTextureType type, NSRange mipmapLevelRange, NSRange slices)
474 Texture::Texture(Texture *original, const TextureSwizzleChannels &swizzle)
495 void Texture::syncContent(ContextMtl *context, mtl::BlitCommandEncoder *blitEncoder)
500 void Texture::syncContentIfNeeded(ContextMtl *context)
505 bool Texture::isCPUAccessible() const
516 bool Texture::isShaderReadable() const
521 bool Texture::supportFormatView() const
526 void Texture::replace2DRegion(ContextMtl *context,
537 void Texture::replaceRegion(ContextMtl *context,
577 void Texture::getBytes(ContextMtl *context,
607 TextureRef Texture::createCubeFaceView(uint32_t face)
614 return TextureRef(new Texture(
623 TextureRef Texture::createSliceMipView(uint32_t slice, const MipmapNativeLevel &level)
632 return TextureRef(new Texture(this, MTLTextureType2D, NSMakeRange(level.get(), 1),
641 TextureRef Texture::createMipView(const MipmapNativeLevel &level)
647 new Texture(this, textureType(), NSMakeRange(level.get(), 1), NSMakeRange(0, slices)));
651 TextureRef Texture::createViewWithDifferentFormat(MTLPixelFormat format)
654 return TextureRef(new Texture(this, format));
657 TextureRef Texture::createViewWithCompatibleFormat(MTLPixelFormat format)
659 return TextureRef(new Texture(this, format));
662 TextureRef Texture::createSwizzleView(const TextureSwizzleChannels &swizzle)
665 return TextureRef(new Texture(this, swizzle));
667 WARN() << "Texture swizzle is not supported on pre iOS 13.0 and macOS 15.0";
673 MTLPixelFormat Texture::pixelFormat() const
678 MTLTextureType Texture::textureType() const
683 uint32_t Texture::mipmapLevels() const
688 uint32_t Texture::arrayLength() const
693 uint32_t Texture::cubeFacesOrArrayLength() const
702 uint32_t Texture::width(const MipmapNativeLevel &level) const
707 uint32_t Texture::height(const MipmapNativeLevel &level) const
712 uint32_t Texture::depth(const MipmapNativeLevel &level) const
717 gl::Extents Texture::size(const MipmapNativeLevel &level) const
728 gl::Extents Texture::size(const ImageNativeIndex &index) const
740 uint32_t Texture::samples() const
745 angle::Result Texture::resize(ContextMtl *context, uint32_t width, uint32_t height)
771 TextureRef Texture::getLinearColorView()
794 TextureRef Texture::getReadableCopy(ContextMtl *context,
819 mReadCopy.reset(new Texture(mtlTexture));
831 void Texture::releaseReadableCopy()
836 TextureRef Texture::getStencilView()
866 void Texture::set(id<MTLTexture> metalTexture)