22 lines
		
	
	
		
			340 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			22 lines
		
	
	
		
			340 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package vertex
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"zworld/engine/renderapi/types"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type Pointer struct {
							 | 
						||
| 
								 | 
							
									Name        string
							 | 
						||
| 
								 | 
							
									Binding     int
							 | 
						||
| 
								 | 
							
									Source      types.Type
							 | 
						||
| 
								 | 
							
									Destination types.Type
							 | 
						||
| 
								 | 
							
									Elements    int
							 | 
						||
| 
								 | 
							
									Stride      int
							 | 
						||
| 
								 | 
							
									Offset      int
							 | 
						||
| 
								 | 
							
									Normalize   bool
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (p *Pointer) Bind(binding int, kind types.Type) {
							 | 
						||
| 
								 | 
							
									p.Binding = binding
							 | 
						||
| 
								 | 
							
									p.Destination = kind
							 | 
						||
| 
								 | 
							
								}
							 |