Class: Engine::ComputeTexture

Inherits:
Object
  • Object
show all
Defined in:
lib/engine/compute_texture.rb

Class Method Summary collapse

Class Method Details

.new(width, height) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/engine/compute_texture.rb', line 5

def self.new(width, height)
  if OS.mac?
    Metal::ComputeTexture.new(width, height)
  else
    OpenGL::ComputeTexture.new(width, height)
  end
end