Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define PARTICLE_COUNT 16384
- #define STAR_COUNT 8192
- #define PARTICLE_DISPATCH_SIZE 256
- typedef struct
- {
- uint32_t particle_count;
- float max_rad, bulge_rad;
- float angle, eccentricity;
- float base_height, height;
- float dust_temp;
- float min_star_opacity, max_star_opacity, min_dust_opacity, max_dust_opacity;
- float speed;
- } galaxy_params;
- typedef struct
- {
- uint32_t star_count;
- float time;
- float min_temp, max_temp;
- float star_size, dust_size, h2size;
- float h2dist;
- } galaxy_info;
- VkPushConstantRange vk_push_const_init(VkShaderStageFlagBits stage, uint32_t offset, size_t size)
- {
- VkPushConstantRange range =
- {
- .stageFlags = stage,
- .offset = offset,
- .size = size
- };
- return range;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement