Blender V4.3
blender::draw::command::RecordingState Struct Reference

#include <draw_command.hh>

Public Member Functions

void front_facing_set (bool facing)
 
void cleanup ()
 

Public Attributes

GPUShadershader = nullptr
 
bool front_facing = true
 
bool inverted_view = false
 
DRWState pipeline_state = DRW_STATE_NO_DRAW
 
int clip_plane_count = 0
 
GPUStorageBuf * resource_id_buf = nullptr
 

Detailed Description

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

Definition at line 44 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 53 of file draw_command.hh.

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

Member Data Documentation

◆ clip_plane_count

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

Definition at line 49 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 46 of file draw_command.hh.

Referenced by cleanup().

◆ inverted_view

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

◆ pipeline_state

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

Definition at line 48 of file draw_command.hh.

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

◆ resource_id_buf

GPUStorageBuf* blender::draw::command::RecordingState::resource_id_buf = nullptr

Used for gl_BaseInstance workaround.

Definition at line 51 of file draw_command.hh.

◆ shader

GPUShader* blender::draw::command::RecordingState::shader = nullptr

Definition at line 45 of file draw_command.hh.


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