Module: Vulkan::Checks
- Included in:
- Buffer, CommandBuffer, CommandBuffer, CommandPool, DescriptorPool, DescriptorSetLayout, Fence, Framebuffer, Image, ImageView, Instance, Instance, LogicalDevice, Memory, PhysicalDevice, Pipeline, Queue, QueueFamily, RenderPass, Sampler, Semaphore, ShaderStage, Swapchain, SwapchainSurfaceInfo
- Defined in:
- lib/vulkan/checks.rb
Instance Method Summary collapse
-
#check_result(result) ⇒ Object
Checks whether the result was ok, raising the appropriate error if not.
Instance Method Details
#check_result(result) ⇒ Object
Checks whether the result was ok, raising the appropriate error if not.
4 5 6 7 8 9 |
# File 'lib/vulkan/checks.rb', line 4 def check_result(result) case result when VK_SUCCESS then return result else raise Vulkan::Error::ResultCheckError, result end end |