Searched refs:uniform_data (Results 1 – 2 of 2) sorted by relevance
/external/vulkan-validation-layers/demos/ |
D | cube.cpp | 330 device.destroyBuffer(uniform_data.buf, nullptr); in cleanup() 331 device.freeMemory(uniform_data.mem, nullptr); in cleanup() 1466 device.createBuffer(&buf_info, nullptr, &uniform_data.buf); in prepare_cube_data_buffer() 1470 device.getBufferMemoryRequirements(uniform_data.buf, &mem_reqs); in prepare_cube_data_buffer() 1472 uniform_data.mem_alloc.setAllocationSize(mem_reqs.size); in prepare_cube_data_buffer() 1473 uniform_data.mem_alloc.setMemoryTypeIndex(0); in prepare_cube_data_buffer() 1479 &uniform_data.mem_alloc.memoryTypeIndex); in prepare_cube_data_buffer() 1482 result = device.allocateMemory(&uniform_data.mem_alloc, nullptr, in prepare_cube_data_buffer() 1483 &(uniform_data.mem)); in prepare_cube_data_buffer() 1486 auto pData = device.mapMemory(uniform_data.mem, 0, in prepare_cube_data_buffer() [all …]
|
D | cube.c | 380 } uniform_data; member 766 err = vkMapMemory(demo->device, demo->uniform_data.mem, 0, in demo_update_data_buffer() 767 demo->uniform_data.mem_alloc.allocationSize, 0, in demo_update_data_buffer() 773 vkUnmapMemory(demo->device, demo->uniform_data.mem); in demo_update_data_buffer() 1486 vkCreateBuffer(demo->device, &buf_info, NULL, &demo->uniform_data.buf); in demo_prepare_cube_data_buffer() 1489 vkGetBufferMemoryRequirements(demo->device, demo->uniform_data.buf, in demo_prepare_cube_data_buffer() 1492 demo->uniform_data.mem_alloc.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in demo_prepare_cube_data_buffer() 1493 demo->uniform_data.mem_alloc.pNext = NULL; in demo_prepare_cube_data_buffer() 1494 demo->uniform_data.mem_alloc.allocationSize = mem_reqs.size; in demo_prepare_cube_data_buffer() 1495 demo->uniform_data.mem_alloc.memoryTypeIndex = 0; in demo_prepare_cube_data_buffer() [all …]
|