Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Attributes | List of all members
foray::as::GeometryMeta Struct Reference

Meta information for a Geometry (gltf equivalent = Primitive). For use in raytracing shaders. More...

#include <foray_geometrymetabuffer.hpp>

Public Attributes

int32_t MaterialIndex = 0
 Index into the materialbuffer.
 
uint32_t IndexBufferOffset = 0U
 Index into the vertex buffer (combine with gl_PrimitiveID to get the correct indices from the indexbuffer)
 

Detailed Description

Meta information for a Geometry (gltf equivalent = Primitive). For use in raytracing shaders.

Member Data Documentation

◆ IndexBufferOffset

uint32_t foray::as::GeometryMeta::IndexBufferOffset = 0U

Index into the vertex buffer (combine with gl_PrimitiveID to get the correct indices from the indexbuffer)

◆ MaterialIndex

int32_t foray::as::GeometryMeta::MaterialIndex = 0

Index into the materialbuffer.


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