Sha256: c4ceaaffcd4ebfebe780a1b33f4f6febefbb493b69d770e18a252dca8de9a3c4
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
# This is free and unencumbered software released into the public domain. require_relative 'api' ## # An OpenXR result code. # # @see https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#return-codes class OpenXR::Result < StandardError include OpenXR::API attr_reader :result def initialize(result, function) @result = result super("#{function} returned #{result}") end class HandleInvalid < OpenXR::Result def initialize(function) super(XR_ERROR_HANDLE_INVALID, function) end end end # OpenXR::Result
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
openxr-0.3.0 | lib/openxr/result.rb |