Struct DeviceExceptionBuffer

Struct Documentation

struct flamegpu::exception::DeviceExceptionBuffer

This struct should exist in device memory per stream It holds buffers for outputting a deconstructed format string

Public Members

unsigned int error_count

The number of threads reporting error

char file_path[FILE_BUFF_LEN]
unsigned int line_no
unsigned int block_id[3]
unsigned int thread_id[3]
char format_string[FORMAT_BUFF_LEN]

The format string passed by the user to the printer

unsigned int format_args_sizes[MAX_ARGS]

The type size of each of the args passed to the printer

char format_args[ARG_BUFF_LEN]

A compact buffer of each of the args passed to the printer Their size corresponds to the matching array above

unsigned int arg_count

The total number of args passed to the printer

unsigned int arg_offset

The total space used by the args

Public Static Attributes

static const unsigned int MAX_ARGS = 20
static const unsigned int ARG_BUFF_LEN = 4096
static const unsigned int FORMAT_BUFF_LEN = 4096
static const unsigned int FILE_BUFF_LEN = 1024
static const unsigned int OUT_STRING_LEN = FORMAT_BUFF_LEN * 2