Class: Oboe_metal::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/oboe_metal.rb,
lib/joboe_metal.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.layer_opObject

Returns the value of attribute layer_op.



9
10
11
# File 'lib/oboe_metal.rb', line 9

def layer_op
  @layer_op
end

Class Method Details

.clearObject



46
47
48
# File 'lib/joboe_metal.rb', line 46

def clear
  
end

.getObject



50
51
52
# File 'lib/joboe_metal.rb', line 50

def get
  
end

.log(layer, label, options = {}, with_backtrace = false) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/oboe_metal.rb', line 11

def log(layer, label, options = {}, with_backtrace = false)
  evt = Oboe::Context.createEvent()
  evt.addInfo("Layer", layer.to_s)
  evt.addInfo("Label", label.to_s)

  options.each_pair do |k, v|
    evt.addInfo(k.to_s, v.to_s)
  end

  evt.addInfo("Backtrace", Oboe::API.backtrace) if with_backtrace

  Oboe.reporter.sendReport(evt)
end

.toStringObject



42
43
44
# File 'lib/joboe_metal.rb', line 42

def toString
  md = .toString
end

.tracing_layer_op?(operation) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
28
29
30
31
# File 'lib/oboe_metal.rb', line 25

def tracing_layer_op?(operation)
  if operation.is_a?(Array)
    return operation.include?(@layer_op)
  else
    return @layer_op == operation
  end
end