You've already forked godot
							
							
				mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 11:50:27 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			478 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			478 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#include "servers/rendering/renderer_rd/shader_rd.h"
 | 
						|
 | 
						|
class ComputeShaderRD : public ShaderRD {
 | 
						|
public:
 | 
						|
	ComputeShaderRD() {
 | 
						|
		static const char *_vertex_code = nullptr;
 | 
						|
		static const char *_fragment_code = nullptr;
 | 
						|
		static const char _compute_code[] = {
 | 
						|
R"<!>(
 | 
						|
#version 450
 | 
						|
 | 
						|
#VERSION_DEFINES
 | 
						|
 | 
						|
#define BLOCK_SIZE 8
 | 
						|
 | 
						|
#define M_PI 3.14159265359
 | 
						|
 | 
						|
void main() {
 | 
						|
	uint t = BLOCK_SIZE + 1;
 | 
						|
}
 | 
						|
)<!>"
 | 
						|
		};
 | 
						|
		setup(_vertex_code, _fragment_code, _compute_code, "ComputeShaderRD");
 | 
						|
	}
 | 
						|
};
 |