lib/opencl_ruby_ffi/opencl_ruby_ffi_base.rb
# Returns a String containing a user friendly representation of the ImageDesc
Returns a String containing a user friendly representation of the ImageDesc
Returns a String containing a user friendly representation of the ImageDesc
def to_s
       return "{ image_type: #{image_type},"\
              " image_width: #{self[:image_width]},"\
              " image_height: #{self[:image_height]},"\
              " image_depth: #{self[:image_depth]},"\
              " image_array_size: #{self[:image_array_size]},"\
              " image_row_pitch: #{self[:image_row_pitch]},"\
              " image_slice_pitch: #{self[:image_slice_pitch]},"\
              " num_mip_levels: #{self[:num_mip_levels]},"\
              " num_samples: #{self[:num_samples]},"\
              " buffer: #{self[:buffer].to_i.to_s(16)} }"
     end
def to_s return "{ image_type: #{image_type}," " image_width: #{self[:image_width]}," " image_height: #{self[:image_height]}," " image_depth: #{self[:image_depth]}," " image_array_size: #{self[:image_array_size]}," " image_row_pitch: #{self[:image_row_pitch]}," " image_slice_pitch: #{self[:image_slice_pitch]}," " num_mip_levels: #{self[:num_mip_levels]}," " num_samples: #{self[:num_samples]}," " buffer: #{self[:buffer].to_i.to_s(16)} }" end
Returns a String containing a user friendly representation of the ImageDesc
Returns a String containing a user friendly representation of the ImageDesc