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

#include <TextureStorage11.h>

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

Public Member Functions

 TextureStorage11_Cube (Renderer11 *renderer, GLenum internalformat, bool renderTarget, int size, int levels, bool hintLevelZeroOnly)
 
virtual ~TextureStorage11_Cube ()
 
virtual UINT getSubresourceIndex (const gl::ImageIndex &index) const
 
virtual gl::Error getResource (ID3D11Resource **outResource)
 
virtual gl::Error getMippedResource (ID3D11Resource **outResource)
 
virtual gl::Error getRenderTarget (const gl::ImageIndex &index, RenderTargetD3D **outRT)
 
virtual gl::Error copyToStorage (TextureStorage *destStorage)
 
virtual void associateImage (Image11 *image, const gl::ImageIndex &index)
 
virtual void disassociateImage (const gl::ImageIndex &index, Image11 *expectedImage)
 
virtual bool isAssociatedImageValid (const gl::ImageIndex &index, Image11 *expectedImage)
 
virtual gl::Error releaseAssociatedImage (const gl::ImageIndex &index, Image11 *incomingImage)
 
virtual gl::Error useLevelZeroWorkaroundTexture (bool useLevelZeroTexture)
 
- 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
 
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

virtual gl::Error getSwizzleTexture (ID3D11Resource **outTexture)
 
virtual gl::Error getSwizzleRenderTarget (int mipLevel, ID3D11RenderTargetView **outRTV)
 
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_Cube()

rx::TextureStorage11_Cube::TextureStorage11_Cube ( Renderer11 renderer,
GLenum  internalformat,
bool  renderTarget,
int  size,
int  levels,
bool  hintLevelZeroOnly 
)

◆ ~TextureStorage11_Cube()

rx::TextureStorage11_Cube::~TextureStorage11_Cube ( )
virtual

Member Function Documentation

◆ associateImage()

void rx::TextureStorage11_Cube::associateImage ( Image11 image,
const gl::ImageIndex index 
)
virtual

Implements rx::TextureStorage11.

◆ copyToStorage()

gl::Error rx::TextureStorage11_Cube::copyToStorage ( TextureStorage destStorage)
virtual

Reimplemented from rx::TextureStorage11.

◆ createDropStencilTexture()

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

Reimplemented from rx::TextureStorage11.

◆ disassociateImage()

void rx::TextureStorage11_Cube::disassociateImage ( const gl::ImageIndex index,
Image11 expectedImage 
)
virtual

Implements rx::TextureStorage11.

◆ ensureTextureExists()

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

◆ getMippedResource()

gl::Error rx::TextureStorage11_Cube::getMippedResource ( ID3D11Resource **  outResource)
virtual

Reimplemented from rx::TextureStorage11.

◆ getRenderTarget()

gl::Error rx::TextureStorage11_Cube::getRenderTarget ( const gl::ImageIndex index,
RenderTargetD3D **  outRT 
)
virtual

Implements rx::TextureStorage11.

◆ getResource()

gl::Error rx::TextureStorage11_Cube::getResource ( ID3D11Resource **  outResource)
virtual

Implements rx::TextureStorage11.

◆ getSubresourceIndex()

UINT rx::TextureStorage11_Cube::getSubresourceIndex ( const gl::ImageIndex index) const
virtual

Reimplemented from rx::TextureStorage11.

◆ getSwizzleRenderTarget()

gl::Error rx::TextureStorage11_Cube::getSwizzleRenderTarget ( int  mipLevel,
ID3D11RenderTargetView **  outRTV 
)
protectedvirtual

Implements rx::TextureStorage11.

◆ getSwizzleTexture()

gl::Error rx::TextureStorage11_Cube::getSwizzleTexture ( ID3D11Resource **  outTexture)
protectedvirtual

Implements rx::TextureStorage11.

◆ isAssociatedImageValid()

bool rx::TextureStorage11_Cube::isAssociatedImageValid ( const gl::ImageIndex index,
Image11 expectedImage 
)
virtual

Implements rx::TextureStorage11.

◆ releaseAssociatedImage()

gl::Error rx::TextureStorage11_Cube::releaseAssociatedImage ( const gl::ImageIndex index,
Image11 incomingImage 
)
virtual

Implements rx::TextureStorage11.

◆ useLevelZeroWorkaroundTexture()

gl::Error rx::TextureStorage11_Cube::useLevelZeroWorkaroundTexture ( bool  useLevelZeroTexture)
virtual

Reimplemented from rx::TextureStorage.


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