$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
metric_stack.h File Reference
#include <stdbool.h>
Include dependency graph for metric_stack.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MetricStack
 

Enumerations

enum  { METRIC_STACK_MAX_DEPTH = 32 }
 

Functions

void metric_stack_init (MetricStack *stack)
 
bool metric_stack_push (MetricStack *stack, int stage_id)
 
int metric_stack_pop (MetricStack *stack)
 
int metric_stack_peek (MetricStack *stack)
 
int metric_stack_get_depth (MetricStack *stack)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
METRIC_STACK_MAX_DEPTH 

Function Documentation

◆ metric_stack_get_depth()

int metric_stack_get_depth ( MetricStack stack)

◆ metric_stack_init()

void metric_stack_init ( MetricStack stack)

◆ metric_stack_peek()

int metric_stack_peek ( MetricStack stack)

◆ metric_stack_pop()

int metric_stack_pop ( MetricStack stack)

◆ metric_stack_push()

bool metric_stack_push ( MetricStack stack,
int  stage_id 
)