當前位置: 首頁>>代碼示例>>Java>>正文


Java VkSubmitInfo類代碼示例

本文整理匯總了Java中org.lwjgl.vulkan.VkSubmitInfo的典型用法代碼示例。如果您正苦於以下問題:Java VkSubmitInfo類的具體用法?Java VkSubmitInfo怎麽用?Java VkSubmitInfo使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


VkSubmitInfo類屬於org.lwjgl.vulkan包,在下文中一共展示了VkSubmitInfo類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: submitCommandBuffer

import org.lwjgl.vulkan.VkSubmitInfo; //導入依賴的package包/類
private static void submitCommandBuffer(VkQueue queue, VkCommandBuffer commandBuffer) {
    if (commandBuffer == null || commandBuffer.address() == 0)
        return;
    VkSubmitInfo submitInfo = VkSubmitInfo.calloc()
            .sType(VK_STRUCTURE_TYPE_SUBMIT_INFO);
    PointerBuffer pCommandBuffers = memAllocPointer(1)
            .put(commandBuffer)
            .flip();
    submitInfo.pCommandBuffers(pCommandBuffers);
    int err = vkQueueSubmit(queue, submitInfo, VK_NULL_HANDLE);
    memFree(pCommandBuffers);
    submitInfo.free();
    if (err != VK_SUCCESS) {
        throw new AssertionError("Failed to submit command buffer: " + VKUtil.translateVulkanResult(err));
    }
}
 
開發者ID:oreonengine,項目名稱:oreon-engine,代碼行數:17,代碼來源:VKRenderEngine.java

示例2: submitCommandBuffer

import org.lwjgl.vulkan.VkSubmitInfo; //導入依賴的package包/類
private static void submitCommandBuffer(VkQueue queue, VkCommandBuffer commandBuffer) {
    if (commandBuffer == null || commandBuffer.address() == NULL)
        return;
    VkSubmitInfo submitInfo = VkSubmitInfo.calloc()
            .sType(VK_STRUCTURE_TYPE_SUBMIT_INFO);
    PointerBuffer pCommandBuffers = memAllocPointer(1)
            .put(commandBuffer)
            .flip();
    submitInfo.pCommandBuffers(pCommandBuffers);
    int err = vkQueueSubmit(queue, submitInfo, VK_NULL_HANDLE);
    memFree(pCommandBuffers);
    submitInfo.free();
    if (err != VK_SUCCESS) {
        throw new AssertionError("Failed to submit command buffer: " + translateVulkanResult(err));
    }
}
 
開發者ID:httpdigest,項目名稱:lwjgl3-swt,代碼行數:17,代碼來源:ClearScreenDemo.java

示例3: submitCommandBuffer

import org.lwjgl.vulkan.VkSubmitInfo; //導入依賴的package包/類
private static void submitCommandBuffer(VkQueue queue, VkCommandBuffer commandBuffer) {
    if (commandBuffer == null || commandBuffer.address() == NULL)
        return;
    VkSubmitInfo submitInfo = VkSubmitInfo.callocStack()
            .sType(VK_STRUCTURE_TYPE_SUBMIT_INFO);
    PointerBuffer pCommandBuffers = stackMallocPointer(1)
            .put(commandBuffer)
            .flip();
    submitInfo.pCommandBuffers(pCommandBuffers);
    int err = vkQueueSubmit(queue, submitInfo, VK_NULL_HANDLE);
    if (err != VK_SUCCESS) {
        throw new AssertionError("Failed to submit command buffer: " + translateVulkanResult(err));
    }
}
 
開發者ID:LWJGLX,項目名稱:autostack,代碼行數:15,代碼來源:ClearScreenDemoUseNewStack.java


注:本文中的org.lwjgl.vulkan.VkSubmitInfo類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。