Topaz 5.0
Topaz Game Engine
Loading...
Searching...
No Matches
tz::gpu::buffer_info Struct Reference

Description

Specifies creation flags for a buffer.

See tz::gpu::create_buffer for usage.

#include "resource.hpp"

Public Attributes

std::span< const std::byte > data
 What initial data shall I have?
 
const char * name = "<untitled buffer resource>"
 What name shall I have when you're looking at me in your graphics debugger of choice? If you don't specify one, I will be named "Resource 123B" (not necessarily 123)
 
buffer_flag flags = static_cast<buffer_flag>(0)
 Any extra optional flags to specify?
 

Member Data Documentation

◆ data

std::span<const std::byte> tz::gpu::buffer_info::data

What initial data shall I have?

Warning
This must not be empty – zero-sized buffers are not supported.

◆ name

const char* tz::gpu::buffer_info::name = "<untitled buffer resource>"

What name shall I have when you're looking at me in your graphics debugger of choice? If you don't specify one, I will be named "Resource 123B" (not necessarily 123)

◆ flags

buffer_flag tz::gpu::buffer_info::flags = static_cast<buffer_flag>(0)

Any extra optional flags to specify?