You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
694 B
Plaintext
29 lines
694 B
Plaintext
2 weeks ago
|
/*****************************************************************************/
|
||
|
/*
|
||
|
Project - MudBun
|
||
|
Publisher - Long Bunny Labs
|
||
|
http://LongBunnyLabs.com
|
||
|
Author - Ming-Lun "Allen" Chou
|
||
|
http://AllenChou.net
|
||
|
*/
|
||
|
/******************************************************************************/
|
||
|
|
||
|
#ifndef MUDBUN_BRUSH_MASK_DEFS
|
||
|
#define MUDBUN_BRUSH_MASK_DEFS
|
||
|
|
||
|
#define kBitsPerInt (32u)
|
||
|
#define kMaxBrushMaskInts (32u)
|
||
|
#define kiEmptyBrushMask (-1)
|
||
|
#define BRUSH_MASK(mask) uint mask[kMaxBrushMaskInts]
|
||
|
|
||
|
#ifdef MUDBUN_IS_COMPUTE_SHADER
|
||
|
RWStructuredBuffer<uint> brushMaskPool;
|
||
|
#else
|
||
|
StructuredBuffer<uint> brushMaskPool;
|
||
|
#endif
|
||
|
|
||
|
int brushMaskPoolSize;
|
||
|
|
||
|
#endif
|
||
|
|