Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_state.h
| Show All 34 Lines | |||||
| ENUM_OPERATORS(eGPUWriteMask, GPU_WRITE_COLOR) | ENUM_OPERATORS(eGPUWriteMask, GPU_WRITE_COLOR) | ||||
| 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), | ||||
| GPU_BARRIER_SHADER_STORAGE = (1 << 2), | GPU_BARRIER_SHADER_STORAGE = (1 << 2), | ||||
| GPU_BARRIER_VERTEX_ATTRIB_ARRAY = (1 << 3), | |||||
| GPU_BARRIER_ELEMENT_ARRAY = (1 << 4), | |||||
| } eGPUBarrier; | } eGPUBarrier; | ||||
| ENUM_OPERATORS(eGPUBarrier, GPU_BARRIER_SHADER_STORAGE) | ENUM_OPERATORS(eGPUBarrier, GPU_BARRIER_SHADER_STORAGE) | ||||
fclem: You need to edit the max enum too here. | |||||
| /** | /** | ||||
| * 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 frame-buffer. | * DST is the color from the frame-buffer. | ||||
| * 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 142 Lines • Show Last 20 Lines | |||||
You need to edit the max enum too here.