3#include "../Base/TexturesCommon.h"
5#include "CommonGLES30.h"
10 struct CapabilitiesGLES30;
25 uint32_t estimatedByteSize;
33 unsigned short hasMipmaps : 1;
34 unsigned short cubeMap : 1;
50 void uploadTextureData(
TextureGLES30& tex,
const TextureData& data, uint32_t layer_offset, uint32_t face_offset, uint32_t level_offset);
51 void uploadTextureData(
TextureHandle textureHandle,
const TextureData& data, uint32_t layer_offset, uint32_t face_offset, uint32_t level_offset)
override;
67 size_t textureMemoryConsumption = 0;
75 void defineTextureData(
TextureGLES30* tex, GLuint textureLevels);
Contains all Cogs related functionality.
Encapsulates state for texture sampling in a state object.
unsigned short boundAsView
True if last use of texture was as a view.
Describes how to fetch data from a texture in shaders.
void releaseNativeTexture(TextureNativeHandle nativeHandle) override
Release a native texture handle.
void releaseSamplerState(SamplerStateHandle handle)
Release the sampler state with the given handle.
void releaseTexture(TextureHandle textureHandle)
Release the texture with the given textureHandle.
void generateMipmaps(TextureHandle texureHandle)
Use the graphics device to generate mipmaps for the texture with the given texture handle.
void releaseResources()
Release all allocated texture resources.
TextureViewHandle createTextureView(TextureViewDescription &viewDescription) override
Create a texture view used to bind a limited view of the texture data to the rendering pipeline.
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)
Load a texture from the given description.
void releaseTextureView(const TextureViewHandle &handle) override
Release the given texture view.
SamplerStateHandle loadSamplerState(const SamplerState &state)
Load a sampler state object.