Module: Stagecraft::Renderer::WGPUCompatibility
- Defined in:
- lib/stagecraft/renderer/wgpu_compatibility.rb
Class Method Summary collapse
Class Method Details
.install! ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/stagecraft/renderer/wgpu_compatibility.rb', line 8 def install! return unless defined?(::WGPU::Native::TextureViewDescriptor) native = ::WGPU::Native descriptor = native::TextureViewDescriptor return if descriptor.members.include?(:usage) native.send(:remove_const, :TextureViewDescriptor) native.const_set(:TextureViewDescriptor, texture_view_descriptor_class(native)) end |