Blender V5.0
blender::draw::command::RecordingState Struct Reference

#include <draw_command.hh>

Public Member Functions

void front_facing_set (bool facing)
void cleanup ()
const gpu::shader::SpecializationConstantsspecialization_constants_get ()

Public Attributes

gpu::shader::SpecializationConstants specialization_constants
bool specialization_constants_in_use = false
bool shader_use_specialization = false
gpu::Shadershader = nullptr
bool front_facing = true
bool inverted_view = false
DRWState pipeline_state = DRW_STATE_NO_DRAW
int clip_plane_count = 0
int instance_offset = 1

Detailed Description

Command recording state. Keep track of several states and avoid redundant state changes.

Definition at line 46 of file draw_command.hh.

Member Function Documentation

◆ cleanup()

void blender::draw::command::RecordingState::cleanup ( )
inline

◆ front_facing_set()

void blender::draw::command::RecordingState::front_facing_set ( bool facing)
inline

Definition at line 60 of file draw_command.hh.

References blender::assign_if_different(), and GPU_front_facing().

◆ specialization_constants_get()

const gpu::shader::SpecializationConstants * blender::draw::command::RecordingState::specialization_constants_get ( )
inline

Definition at line 84 of file draw_command.hh.

References shader_use_specialization, and specialization_constants.

Member Data Documentation

◆ clip_plane_count

int blender::draw::command::RecordingState::clip_plane_count = 0

Definition at line 56 of file draw_command.hh.

Referenced by blender::draw::command::StateSet::execute().

◆ front_facing

bool blender::draw::command::RecordingState::front_facing = true

Definition at line 53 of file draw_command.hh.

Referenced by cleanup().

◆ instance_offset

int blender::draw::command::RecordingState::instance_offset = 1

Used for pass simple resource ID. Starts at 1 as 0 is the identity handle.

Definition at line 58 of file draw_command.hh.

◆ inverted_view

bool blender::draw::command::RecordingState::inverted_view = false

Definition at line 54 of file draw_command.hh.

◆ pipeline_state

DRWState blender::draw::command::RecordingState::pipeline_state = DRW_STATE_NO_DRAW

Definition at line 55 of file draw_command.hh.

Referenced by blender::draw::command::StateSet::execute().

◆ shader

gpu::Shader* blender::draw::command::RecordingState::shader = nullptr

Definition at line 52 of file draw_command.hh.

◆ shader_use_specialization

bool blender::draw::command::RecordingState::shader_use_specialization = false

Definition at line 51 of file draw_command.hh.

Referenced by specialization_constants_get().

◆ specialization_constants

gpu::shader::SpecializationConstants blender::draw::command::RecordingState::specialization_constants

Definition at line 47 of file draw_command.hh.

Referenced by specialization_constants_get().

◆ specialization_constants_in_use

bool blender::draw::command::RecordingState::specialization_constants_in_use = false

Definition at line 49 of file draw_command.hh.


The documentation for this struct was generated from the following file: