srp
software rendering pipeline
Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1// Software Rendering Pipeline (SRP) library
2// Licensed under GNU GPLv3
3
4#pragma once
5
9#include <stddef.h>
10
15#define INDEX_VOID_PTR(ptr, idx, nBytesPerElement) \
16 ( ( (uint8_t*) (ptr) ) + (idx) * (nBytesPerElement) )
18#define ADD_VOID_PTR(ptr, nBytes) \
19 ( ( (uint8_t*) (ptr) ) + (nBytes) )
20
// ingroup Various_internal
22