webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Protected Member Functions | List of all members
rx::TextureStorage11_2D Class Reference

#include <TextureStorage11.h>

Inheritance diagram for rx::TextureStorage11_2D:
rx::TextureStorage11 rx::TextureStorage angle::NonCopyable

Public Member Functions

 TextureStorage11_2D (Renderer11 *renderer, SwapChain11 *swapchain)
 
 TextureStorage11_2D (Renderer11 *renderer, GLenum internalformat, bool renderTarget, GLsizei width, GLsizei height, int levels, bool hintLevelZeroOnly=false)
 
 ~TextureStorage11_2D () override
 
gl::Error getResource (ID3D11Resource **outResource) override
 
gl::Error getMippedResource (ID3D11Resource **outResource) override
 
gl::Error getRenderTarget (const gl::ImageIndex &index, RenderTargetD3D **outRT) override
 
gl::Error copyToStorage (TextureStorage *destStorage) override
 
void associateImage (Image11 *image, const gl::ImageIndex &index) override
 
void disassociateImage (const gl::ImageIndex &index, Image11 *expectedImage) override
 
bool isAssociatedImageValid (const gl::ImageIndex &index, Image11 *expectedImage) override
 
gl::Error releaseAssociatedImage (const gl::ImageIndex &index, Image11 *incomingImage) override
 
gl::Error useLevelZeroWorkaroundTexture (bool useLevelZeroTexture) override
 
- Public Member Functions inherited from rx::TextureStorage11
virtual ~TextureStorage11 ()
 
UINT getBindFlags () const
 
UINT getMiscFlags () const
 
virtual gl::Error getSRV (const gl::TextureState &textureState, ID3D11ShaderResourceView **outSRV)
 
virtual gl::Error generateMipmap (const gl::ImageIndex &sourceIndex, const gl::ImageIndex &destIndex)
 
virtual int getTopLevel () const
 
virtual bool isRenderTarget () const
 
virtual bool isManaged () const
 
bool supportsNativeMipmapFunction () const override
 
virtual int getLevelCount () const
 
virtual UINT getSubresourceIndex (const gl::ImageIndex &index) const
 
gl::Error generateSwizzles (const gl::SwizzleState &swizzleTarget)
 
void markLevelDirty (int mipLevel)
 
void markDirty ()
 
gl::Error updateSubresourceLevel (ID3D11Resource *texture, unsigned int sourceSubresource, const gl::ImageIndex &index, const gl::Box &copyArea)
 
gl::Error copySubresourceLevel (ID3D11Resource *dstTexture, unsigned int dstSubresource, const gl::ImageIndex &index, const gl::Box &region)
 
virtual gl::Error setData (const gl::ImageIndex &index, ImageD3D *image, const gl::Box *destBox, GLenum type, const gl::PixelUnpackState &unpack, const uint8_t *pixelData)
 
gl::Error getSRVLevels (GLint baseLevel, GLint maxLevel, ID3D11ShaderResourceView **outSRV)
 
const d3d11::FormatgetFormatSet () const
 
- Public Member Functions inherited from rx::TextureStorage
 TextureStorage ()
 
virtual ~TextureStorage ()
 

Protected Member Functions

gl::Error getSwizzleTexture (ID3D11Resource **outTexture) override
 
gl::Error getSwizzleRenderTarget (int mipLevel, ID3D11RenderTargetView **outRTV) override
 
gl::Error createDropStencilTexture () override
 
gl::Error ensureTextureExists (int mipLevels)
 
- Protected Member Functions inherited from rx::TextureStorage11
 TextureStorage11 (Renderer11 *renderer, UINT bindFlags, UINT miscFlags, GLenum internalFormat)
 
int getLevelWidth (int mipLevel) const
 
int getLevelHeight (int mipLevel) const
 
int getLevelDepth (int mipLevel) const
 
gl::Error getSRVLevel (int mipLevel, bool blitSRV, ID3D11ShaderResourceView **outSRV)
 
gl::Error initDropStencilTexture (const gl::ImageIndexIterator &it)
 
void verifySwizzleExists (const gl::SwizzleState &swizzleState)
 
void clearSRVCache ()
 

Additional Inherited Members

- Static Public Member Functions inherited from rx::TextureStorage11
static DWORD GetTextureBindFlags (GLenum internalFormat, const Renderer11DeviceCaps &renderer11DeviceCaps, bool renderTarget)
 
static DWORD GetTextureMiscFlags (GLenum internalFormat, const Renderer11DeviceCaps &renderer11DeviceCaps, bool renderTarget, int levels)
 
- Protected Attributes inherited from rx::TextureStorage11
Renderer11mRenderer
 
int mTopLevel
 
unsigned int mMipLevels
 
const d3d11::FormatmFormatInfo
 
unsigned int mTextureWidth
 
unsigned int mTextureHeight
 
unsigned int mTextureDepth
 
gl::SwizzleState mSwizzleCache [gl::IMPLEMENTATION_MAX_TEXTURE_LEVELS]
 
ID3D11Texture2D * mDropStencilTexture
 

Constructor & Destructor Documentation

◆ TextureStorage11_2D() [1/2]

rx::TextureStorage11_2D::TextureStorage11_2D ( Renderer11 renderer,
SwapChain11 swapchain 
)

◆ TextureStorage11_2D() [2/2]

rx::TextureStorage11_2D::TextureStorage11_2D ( Renderer11 renderer,
GLenum  internalformat,
bool  renderTarget,
GLsizei  width,
GLsizei  height,
int  levels,
bool  hintLevelZeroOnly = false 
)

◆ ~TextureStorage11_2D()

rx::TextureStorage11_2D::~TextureStorage11_2D ( )
override

Member Function Documentation

◆ associateImage()

void rx::TextureStorage11_2D::associateImage ( Image11 image,
const gl::ImageIndex index 
)
overridevirtual

Implements rx::TextureStorage11.

◆ copyToStorage()

gl::Error rx::TextureStorage11_2D::copyToStorage ( TextureStorage destStorage)
overridevirtual

Reimplemented from rx::TextureStorage11.

◆ createDropStencilTexture()

gl::Error rx::TextureStorage11_2D::createDropStencilTexture ( )
overrideprotectedvirtual

Reimplemented from rx::TextureStorage11.

◆ disassociateImage()

void rx::TextureStorage11_2D::disassociateImage ( const gl::ImageIndex index,
Image11 expectedImage 
)
overridevirtual

Implements rx::TextureStorage11.

◆ ensureTextureExists()

gl::Error rx::TextureStorage11_2D::ensureTextureExists ( int  mipLevels)
protected

◆ getMippedResource()

gl::Error rx::TextureStorage11_2D::getMippedResource ( ID3D11Resource **  outResource)
overridevirtual

Reimplemented from rx::TextureStorage11.

◆ getRenderTarget()

gl::Error rx::TextureStorage11_2D::getRenderTarget ( const gl::ImageIndex index,
RenderTargetD3D **  outRT 
)
overridevirtual

Implements rx::TextureStorage11.

◆ getResource()

gl::Error rx::TextureStorage11_2D::getResource ( ID3D11Resource **  outResource)
overridevirtual

Implements rx::TextureStorage11.

◆ getSwizzleRenderTarget()

gl::Error rx::TextureStorage11_2D::getSwizzleRenderTarget ( int  mipLevel,
ID3D11RenderTargetView **  outRTV 
)
overrideprotectedvirtual

Implements rx::TextureStorage11.

◆ getSwizzleTexture()

gl::Error rx::TextureStorage11_2D::getSwizzleTexture ( ID3D11Resource **  outTexture)
overrideprotectedvirtual

Implements rx::TextureStorage11.

◆ isAssociatedImageValid()

bool rx::TextureStorage11_2D::isAssociatedImageValid ( const gl::ImageIndex index,
Image11 expectedImage 
)
overridevirtual

Implements rx::TextureStorage11.

◆ releaseAssociatedImage()

gl::Error rx::TextureStorage11_2D::releaseAssociatedImage ( const gl::ImageIndex index,
Image11 incomingImage 
)
overridevirtual

Implements rx::TextureStorage11.

◆ useLevelZeroWorkaroundTexture()

gl::Error rx::TextureStorage11_2D::useLevelZeroWorkaroundTexture ( bool  useLevelZeroTexture)
overridevirtual

Reimplemented from rx::TextureStorage.


The documentation for this class was generated from the following files: