Advertisement
Chillzy

Untitled

Nov 6th, 2024
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.79 KB | Source Code | 0 0
  1.  
  2. #define PARTICLE_COUNT 16384
  3. #define STAR_COUNT 8192
  4.  
  5. #define PARTICLE_DISPATCH_SIZE 256
  6.  
  7. typedef struct
  8. {
  9.     uint32_t particle_count;
  10.     float max_rad, bulge_rad;
  11.     float angle, eccentricity;
  12.     float base_height, height;
  13.     float dust_temp;
  14.     float min_star_opacity, max_star_opacity, min_dust_opacity, max_dust_opacity;
  15.     float speed;
  16. }   galaxy_params;
  17.  
  18. typedef struct
  19. {
  20.     uint32_t star_count;
  21.     float time;
  22.     float min_temp, max_temp;
  23.     float star_size, dust_size, h2size;
  24.     float h2dist;
  25. }   galaxy_info;
  26.  
  27. VkPushConstantRange vk_push_const_init(VkShaderStageFlagBits stage, uint32_t offset, size_t size)
  28. {
  29.     VkPushConstantRange range =
  30.     {
  31.         .stageFlags = stage,
  32.         .offset = offset,
  33.         .size = size
  34.     };
  35.  
  36.     return range;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement