Class: Glslkit::Bundle::Result
- Inherits:
-
Object
- Object
- Glslkit::Bundle::Result
- Defined in:
- lib/glslkit/bundle.rb
Overview
kind: nil(成功) | :preprocess(#include解決の失敗) | :validation(Validatorのエラー)。 kind == :validation でも vertex/fragment は入る(前処理自体は成功している)。 manifest は kind.nil? のときだけ入る。
Instance Attribute Summary collapse
-
#diagnostics ⇒ Object
readonly
Returns the value of attribute diagnostics.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#fragment ⇒ Object
readonly
Returns the value of attribute fragment.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#manifest ⇒ Object
readonly
Returns the value of attribute manifest.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#source_digest ⇒ Object
readonly
Returns the value of attribute source_digest.
-
#vertex ⇒ Object
readonly
Returns the value of attribute vertex.
Instance Method Summary collapse
-
#initialize(name:, source_digest:, kind: nil, vertex: nil, fragment: nil, manifest: nil, diagnostics: [], error: nil) ⇒ Result
constructor
A new instance of Result.
- #ok? ⇒ Boolean
Constructor Details
#initialize(name:, source_digest:, kind: nil, vertex: nil, fragment: nil, manifest: nil, diagnostics: [], error: nil) ⇒ Result
Returns a new instance of Result.
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/glslkit/bundle.rb', line 38 def initialize(name:, source_digest:, kind: nil, vertex: nil, fragment: nil, manifest: nil, diagnostics: [], error: nil) @name = name @kind = kind @source_digest = source_digest @vertex = vertex @fragment = fragment @manifest = manifest @diagnostics = diagnostics @error = error end |
Instance Attribute Details
#diagnostics ⇒ Object (readonly)
Returns the value of attribute diagnostics.
36 37 38 |
# File 'lib/glslkit/bundle.rb', line 36 def diagnostics @diagnostics end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
36 37 38 |
# File 'lib/glslkit/bundle.rb', line 36 def error @error end |
#fragment ⇒ Object (readonly)
Returns the value of attribute fragment.
36 37 38 |
# File 'lib/glslkit/bundle.rb', line 36 def fragment @fragment end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
36 37 38 |
# File 'lib/glslkit/bundle.rb', line 36 def kind @kind end |
#manifest ⇒ Object (readonly)
Returns the value of attribute manifest.
36 37 38 |
# File 'lib/glslkit/bundle.rb', line 36 def manifest @manifest end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
36 37 38 |
# File 'lib/glslkit/bundle.rb', line 36 def name @name end |
#source_digest ⇒ Object (readonly)
Returns the value of attribute source_digest.
36 37 38 |
# File 'lib/glslkit/bundle.rb', line 36 def source_digest @source_digest end |
#vertex ⇒ Object (readonly)
Returns the value of attribute vertex.
36 37 38 |
# File 'lib/glslkit/bundle.rb', line 36 def vertex @vertex end |
Instance Method Details
#ok? ⇒ Boolean
49 50 51 |
# File 'lib/glslkit/bundle.rb', line 49 def ok? kind.nil? end |