Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Object to map data into
- ssbo_object_picking p;
- //map gpu memory into data
- void* data;
- vkMapMemory(device, buffer_memory, 0, sizeof(ssbo_object_picking), 0, &data);
- //copy from data into p
- memcpy(&p, data, sizeof(ssbo_object_picking));
- //unmap gpu memory
- vkUnmapMemory(device, buffer_memory);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement