void initVulkan() { VulkanAndroidExampleBase::initVulkan(); loadTexture( "textures/android_robot.ktx", VK_FORMAT_R8G8B8A8_UNORM, &texture, false); createCommandBuffers(); // Compute stuff getComputeQueue(); createComputeCommandBuffer(); prepareStorageBuffers(); prepareUniformBuffers(); setupDescriptorSetLayout(); preparePipelines(); setupDescriptorPool(); setupDescriptorSet(); prepareCompute(); buildCommandBuffers(); buildComputeCommandBuffer(); state.zoom = -5.0f; state.rotation = glm::vec3(); prepared = true; }
void prepare() { VulkanExampleBase::prepare(); loadAssets(); prepareUniformBuffers(); setupDescriptorSetLayout(); preparePipelines(); setupDescriptorSets(); buildCommandBuffers(); prepared = true; }
void prepare() { VulkanExampleBase::prepare(); prepareVertices(); setupDescriptorSetLayout(); preparePipelines(); setupDescriptorPool(); setupDescriptorSets(); updateUniformBuffers(); buildCommandBuffers(); prepared = true; }
void prepare() { VulkanExampleBase::prepare(); loadMeshes(); setupVertexDescriptions(); prepareUniformBuffers(); setupDescriptorSetLayout(); preparePipelines(); setupDescriptorPool(); setupDescriptorSet(); buildCommandBuffers(); prepared = true; }
void prepare() { sampleCount = getMaxUsableSampleCount(); VulkanExampleBase::prepare(); loadAssets(); setupVertexDescriptions(); prepareUniformBuffers(); setupDescriptorSetLayout(); preparePipelines(); setupDescriptorPool(); setupDescriptorSet(); buildCommandBuffers(); prepared = true; }
void prepare() { VulkanExampleBase::prepare(); generateQuad(); setupVertexDescriptions(); prepareUniformBuffers(); prepareNoiseTexture(256, 256, 256); setupDescriptorSetLayout(); preparePipelines(); setupDescriptorPool(); setupDescriptorSet(); buildCommandBuffers(); prepared = true; }
void prepare() { VulkanExampleBase::prepare(); loadTextures(); getComputeQueue(); prepareStorageBuffers(); prepareUniformBuffers(); setupDescriptorSetLayout(); preparePipelines(); setupDescriptorPool(); setupDescriptorSet(); prepareCompute(); buildCommandBuffers(); prepared = true; }
void prepare() { VulkanExampleBase::prepare(); loadMeshes(); setupVertexDescriptions(); prepareUniformBuffers(); loadTexture( "./../data/textures/cubemap_yokohama.ktx", VK_FORMAT_BC3_UNORM_BLOCK, false); setupDescriptorSetLayout(); preparePipelines(); setupDescriptorPool(); setupDescriptorSets(); buildCommandBuffers(); prepared = true; }
VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL); } void prepare() { VulkanExampleBase::prepare(); generateQuad(); loadMeshes(); setupVertexDescriptions(); prepareUniformBuffers(); prepareTextureTarget(TEX_DIM, TEX_DIM, DEPTH_FORMAT); setupDescriptorSetLayout(); preparePipelines(); setupDescriptorPool(); setupDescriptorSets(); prepareOffscreenFramebuffer();
void initVulkan() { VulkanAndroidExampleBase::initVulkan(); prepareVertices(); prepareUniformBuffers(); setupDescriptorSetLayout(); preparePipelines(); setupDescriptorPool(); setupDescriptorSet(); buildCommandBuffers(); state.zoom = -5.0f; state.rotation = glm::vec3(); prepared = true; }
void prepare() { // Check if device supports tessellation shaders if (!deviceFeatures.tessellationShader) { vkTools::exitFatal("Selected GPU does not support tessellation shaders!", "Feature not supported"); } VulkanExampleBase::prepare(); loadTextures(); loadMeshes(); setupVertexDescriptions(); prepareUniformBuffers(); setupDescriptorSetLayout(); preparePipelines(); setupDescriptorPool(); setupDescriptorSet(); buildCommandBuffers(); prepared = true; }
void initVulkan() { VulkanAndroidExampleBase::initVulkan(); loadTexture( "textures/vulkan_android_robot.ktx", VK_FORMAT_R8G8B8A8_UNORM, false); prepareVertices(); prepareUniformBuffers(); setupDescriptorSetLayout(); preparePipelines(); setupDescriptorPool(); setupDescriptorSet(); buildCommandBuffers(); state.zoom = -5.0f; state.rotation = glm::vec3(); prepared = true; }