Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_texture.h
| Show First 20 Lines • Show All 251 Lines • ▼ Show 20 Lines | GPUTexture *GPU_texture_create_view(const char *name, | ||||
| const GPUTexture *src, | const GPUTexture *src, | ||||
| eGPUTextureFormat format, | eGPUTextureFormat format, | ||||
| int mip_start, | int mip_start, | ||||
| int mip_len, | int mip_len, | ||||
| int layer_start, | int layer_start, | ||||
| int layer_len, | int layer_len, | ||||
| bool cube_as_array); | bool cube_as_array); | ||||
| GPUTexture *GPU_texture_create_single_layer_view(const char *name, const GPUTexture *src); | |||||
| /** | |||||
| * Create an alias of the source texture as a texture array with only one layer. | |||||
| * Works for 1D, 2D and cube-map source texture. | |||||
| * If \a src is freed, the texture view will continue to be valid. | |||||
| */ | |||||
| GPUTexture *GPU_texture_create_single_layer_array_view(const char *name, const GPUTexture *src); | |||||
| void GPU_texture_update_mipmap(GPUTexture *tex, | void GPU_texture_update_mipmap(GPUTexture *tex, | ||||
| int miplvl, | int miplvl, | ||||
| eGPUDataFormat gpu_data_format, | eGPUDataFormat gpu_data_format, | ||||
| const void *pixels); | const void *pixels); | ||||
| /** | /** | ||||
| * \note Updates only mip 0. | * \note Updates only mip 0. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines | |||||