Class: Vulkan::Surface
- Inherits:
-
Object
- Object
- Vulkan::Surface
- Includes:
- Finalizer
- Defined in:
- lib/vulkan/surface.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(instance, handle) ⇒ Surface
constructor
A new instance of Surface.
Methods included from Finalizer
#finalize_with, #hexaddr, included, #to_ptr
Constructor Details
#initialize(instance, handle) ⇒ Surface
Returns a new instance of Surface.
5 6 7 8 |
# File 'lib/vulkan/surface.rb', line 5 def initialize(instance, handle) @handle = handle finalize_with Vulkan[instance, nil], :vkDestroySurfaceKHR, instance.to_ptr, @handle, nil end |