Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_state.h
| Show All 25 Lines | typedef enum eGPUWriteMask { | ||||
| GPU_WRITE_NONE = 0, | GPU_WRITE_NONE = 0, | ||||
| GPU_WRITE_RED = (1 << 0), | GPU_WRITE_RED = (1 << 0), | ||||
| GPU_WRITE_GREEN = (1 << 1), | GPU_WRITE_GREEN = (1 << 1), | ||||
| GPU_WRITE_BLUE = (1 << 2), | GPU_WRITE_BLUE = (1 << 2), | ||||
| GPU_WRITE_ALPHA = (1 << 3), | GPU_WRITE_ALPHA = (1 << 3), | ||||
| GPU_WRITE_DEPTH = (1 << 4), | GPU_WRITE_DEPTH = (1 << 4), | ||||
| GPU_WRITE_STENCIL = (1 << 5), | GPU_WRITE_STENCIL = (1 << 5), | ||||
| GPU_WRITE_COLOR = (GPU_WRITE_RED | GPU_WRITE_GREEN | GPU_WRITE_BLUE | GPU_WRITE_ALPHA), | GPU_WRITE_COLOR = (GPU_WRITE_RED | GPU_WRITE_GREEN | GPU_WRITE_BLUE | GPU_WRITE_ALPHA), | ||||
| GPU_WRITE_MAX_DONT_USE = ~(0) | |||||
| } eGPUWriteMask; | } eGPUWriteMask; | ||||
| ENUM_OPERATORS(eGPUWriteMask) | ENUM_OPERATORS(eGPUWriteMask, GPU_WRITE_MAX_DONT_USE) | ||||
| typedef enum eGPUBarrier { | typedef enum eGPUBarrier { | ||||
| GPU_BARRIER_NONE = 0, | GPU_BARRIER_NONE = 0, | ||||
| GPU_BARRIER_SHADER_IMAGE_ACCESS = (1 << 0), | GPU_BARRIER_SHADER_IMAGE_ACCESS = (1 << 0), | ||||
| GPU_BARRIER_TEXTURE_FETCH = (1 << 1), | GPU_BARRIER_TEXTURE_FETCH = (1 << 1), | ||||
| } eGPUBarrier; | } eGPUBarrier; | ||||
| ENUM_OPERATORS(eGPUBarrier) | ENUM_OPERATORS(eGPUBarrier, 0) | ||||
| /** | /** | ||||
| * Defines the fixed pipeline blending equation. | * Defines the fixed pipeline blending equation. | ||||
| * SRC is the output color from the shader. | * SRC is the output color from the shader. | ||||
| * DST is the color from the framebuffer. | * DST is the color from the framebuffer. | ||||
| * The blending equation is : | * The blending equation is : | ||||
| * (SRC * A) + (DST * B). | * (SRC * A) + (DST * B). | ||||
| * The blend mode will modify the A and B parameters. | * The blend mode will modify the A and B parameters. | ||||
| ▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines | |||||