Method: OpenXR::Session#destroy!

Defined in:
lib/openxr/session.rb

#destroy!void

This method returns an undefined value.

Raises:



52
53
54
55
56
57
58
59
# File 'lib/openxr/session.rb', line 52

def destroy!
  return if @struct.nil?
  # https://www.khronos.org/registry/OpenXR/specs/1.0/man/html/openxr.html#_xrdestroysession3
  case result = xrDestroySession(@struct[:handle])
    when XR_SUCCESS then @struct = nil
    else raise OpenXR::Result.for(result).new(:xrDestroySession) # unreachable
  end
end