compute.out 478 B

12345678910111213141516171819202122232425
  1. #include "servers/rendering/renderer_rd/shader_rd.h"
  2. class ComputeShaderRD : public ShaderRD {
  3. public:
  4. ComputeShaderRD() {
  5. static const char *_vertex_code = nullptr;
  6. static const char *_fragment_code = nullptr;
  7. static const char _compute_code[] = {
  8. R"<!>(
  9. #version 450
  10. #VERSION_DEFINES
  11. #define BLOCK_SIZE 8
  12. #define M_PI 3.14159265359
  13. void main() {
  14. uint t = BLOCK_SIZE + 1;
  15. }
  16. )<!>"
  17. };
  18. setup(_vertex_code, _fragment_code, _compute_code, "ComputeShaderRD");
  19. }
  20. };