srp
software rendering pipeline
Loading...
Searching...
No Matches
Various

Internal stuff that cannot be easily grouped into other modules. More...

Collaboration diagram for Various:

Files

file  stb_image.c
 
file  type.c
 
file  type_p.h
 
file  voidptr.h
 
size_t srpSizeofType (SRPType type)
 
#define SRP_FORCEINLINE   inline
 
#define INDEX_VOID_PTR(ptr, idx, nBytesPerElement)    ( ( (uint8_t*) (ptr) ) + (idx) * (nBytesPerElement) )
 
#define ADD_VOID_PTR(ptr, nBytes)    ( ( (uint8_t*) (ptr) ) + (nBytes) )
 

Detailed Description

Internal stuff that cannot be easily grouped into other modules.

Macro Definition Documentation

◆ ADD_VOID_PTR

#define ADD_VOID_PTR (   ptr,
  nBytes 
)     ( ( (uint8_t*) (ptr) ) + (nBytes) )

Add nBytes bytes to the void*

◆ INDEX_VOID_PTR

#define INDEX_VOID_PTR (   ptr,
  idx,
  nBytesPerElement 
)     ( ( (uint8_t*) (ptr) ) + (idx) * (nBytesPerElement) )

Index void* as if it was an array with nBytesPerElement bytes per element

Function Documentation

◆ srpSizeofType()

size_t srpSizeofType ( SRPType  type)

Determine the size of specific type defined by SRPType enum