Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_texture_private.hh
| Show All 35 Lines | typedef enum eGPUTextureType { | ||||
| GPU_TEXTURE_ARRAY = (1 << 4), | GPU_TEXTURE_ARRAY = (1 << 4), | ||||
| GPU_TEXTURE_BUFFER = (1 << 5), | GPU_TEXTURE_BUFFER = (1 << 5), | ||||
| GPU_TEXTURE_1D_ARRAY = (GPU_TEXTURE_1D | GPU_TEXTURE_ARRAY), | GPU_TEXTURE_1D_ARRAY = (GPU_TEXTURE_1D | GPU_TEXTURE_ARRAY), | ||||
| GPU_TEXTURE_2D_ARRAY = (GPU_TEXTURE_2D | GPU_TEXTURE_ARRAY), | GPU_TEXTURE_2D_ARRAY = (GPU_TEXTURE_2D | GPU_TEXTURE_ARRAY), | ||||
| GPU_TEXTURE_CUBE_ARRAY = (GPU_TEXTURE_CUBE | GPU_TEXTURE_ARRAY), | GPU_TEXTURE_CUBE_ARRAY = (GPU_TEXTURE_CUBE | GPU_TEXTURE_ARRAY), | ||||
| } eGPUTextureType; | } eGPUTextureType; | ||||
| ENUM_OPERATORS(eGPUTextureType, GPU_TEXTURE_CUBE_ARRAY) | ENUM_OPERATORS(eGPUTextureType, GPU_TEXTURE_BUFFER) | ||||
| /* Format types for samplers within the shader. | /* Format types for samplers within the shader. | ||||
| * This covers the sampler format type permutations within GLSL/MSL. */ | * This covers the sampler format type permutations within GLSL/MSL. */ | ||||
| typedef enum eGPUSamplerFormat { | typedef enum eGPUSamplerFormat { | ||||
| GPU_SAMPLER_TYPE_FLOAT = 0, | GPU_SAMPLER_TYPE_FLOAT = 0, | ||||
| GPU_SAMPLER_TYPE_INT = 1, | GPU_SAMPLER_TYPE_INT = 1, | ||||
| GPU_SAMPLER_TYPE_UINT = 2, | GPU_SAMPLER_TYPE_UINT = 2, | ||||
| /* Special case for depth, as these require differing dummy formats. */ | /* Special case for depth, as these require differing dummy formats. */ | ||||
| ▲ Show 20 Lines • Show All 700 Lines • Show Last 20 Lines | |||||