45 lines
		
	
	
		
			795 B
		
	
	
	
		
			HLSL
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			795 B
		
	
	
	
		
			HLSL
		
	
	
	
	
	
| /******************************************************************************/
 | |
| /*
 | |
|   Project   - MudBun
 | |
|   Publisher - Long Bunny Labs
 | |
|               http://LongBunnyLabs.com
 | |
|   Author    - Ming-Lun "Allen" Chou
 | |
|               http://AllenChou.net
 | |
| */
 | |
| /******************************************************************************/
 | |
| 
 | |
| #ifndef MUDBUN_GEN_POINT_DEFS
 | |
| #define MUDBUN_GEN_POINT_DEFS
 | |
| 
 | |
| #include "BrushDefs.cginc"
 | |
| 
 | |
| struct GenPoint
 | |
| {
 | |
|   float4 posNorm;
 | |
| 
 | |
|   int4 boneIndex;
 | |
| 
 | |
|   uint boneWeight;
 | |
|   int iBrushMask;
 | |
|   uint vertId;
 | |
|   uint atSmoothEdge;
 | |
| 
 | |
|   float sdfValue;
 | |
|   float norm2d;
 | |
|   float2 uv;
 | |
| 
 | |
|   SdfBrushMaterialCompressed material;
 | |
| };
 | |
| 
 | |
| #ifdef MUDBUN_IS_COMPUTE_SHADER
 | |
| RWStructuredBuffer<GenPoint> aGenPoint;
 | |
| #else
 | |
| StructuredBuffer<GenPoint> aGenPoint;
 | |
| #endif
 | |
| 
 | |
| int maxGenPoints;
 | |
| 
 | |
| 
 | |
| #endif
 | |
| 
 | 
