3#include "../ITextures.h"
7#include "../Base/TexturesCommon.h"
11 class GraphicsDeviceGL20;
37 using TexturesCommon::loadTexture;
44 uint32_t layer_offset = 0,
45 uint32_t face_offset = 0,
46 uint32_t level_offset = 0);
50 uint32_t layer_offset,
52 uint32_t level_offset)
override;
70 bool useTextureStorage;
Provides a weakly referenced view over the contents of a string.
Contains all Cogs related functionality.
Encapsulates state for texture sampling in a state object.
ETextureFlags
Texture flags enumeration.
Describes how to fetch data from a texture in shaders.
void releaseSamplerState(SamplerStateHandle handle) override
Release the sampler state with the given handle.
SamplerStateHandle loadSamplerState(const SamplerState &state) override
Load a sampler state object.
void generateMipmaps(TextureHandle texureHandle) override
Use the graphics device to generate mipmaps for the texture with the given texture handle.
TextureViewHandle createTextureView(TextureViewDescription &viewDescription) override
Create a texture view used to bind a limited view of the texture data to the rendering pipeline.
void releaseTextureView(const TextureViewHandle &handle) override
Release the given texture view.
void annotate(TextureHandle handle, const StringView &name) override
Associate a name with an object for use in graphics debugging.
void releaseResources() override
Release all allocated texture resources.
void * getNativeHandle(TextureHandle textureHandle) override
Get the device-specific handle (D3D texture pointer, OpenGL texture ID etc) associated with the given...
TextureHandle loadTexture(const TextureDescription &desc, const TextureData *data) override
Load a texture from the given description.
void releaseTexture(TextureHandle textureHandle) override
Release the texture with the given textureHandle.