lib/opencl_ruby_ffi/Image.rb
def format
      image_format = MemoryPointer::new( ImageFormat )
      error = OpenCL.clGetImageInfo( self, FORMAT, image_format.size, image_format, nil)
      error_check(error)
      return ImageFormat::new( image_format )
    end
# Returns the ImageFormat corresponding to the image
Returns the ImageFormat corresponding to the image
Returns the ImageFormat corresponding to the image
def format
      image_format = MemoryPointer::new( ImageFormat )
      error = OpenCL.clGetImageInfo( self, FORMAT, image_format.size, image_format, nil)
      error_check(error)
      return ImageFormat::new( image_format )
    end
def format image_format = MemoryPointer :: new ( ImageFormat ) error = OpenCL . clGetImageInfo ( self , FORMAT , image_format . size , image_format , nil ) error_check ( error ) return ImageFormat :: new ( image_format ) end
Returns the ImageFormat corresponding to the image
Returns the ImageFormat corresponding to the image