lib/opencl_ruby_ffi/Kernel.rb
# Returns a TypeQualifier corresponding to the Arg
Returns a TypeQualifier corresponding to the Arg
Returns a TypeQualifier corresponding to the Arg
def type_qualifier
          @_type_qualifier ||= begin
            error_check(INVALID_OPERATION) if @kernel.context.platform.version_number < 1.2
            ptr = MemoryPointer::new( :cl_kernel_arg_type_qualifier )
            error = OpenCL.clGetKernelArgInfo(@kernel, @index, TYPE_QUALIFIER, ptr.size, ptr, nil)
            error_check(error)
            TypeQualifier::new( ptr.read_cl_kernel_arg_type_qualifier )
          end
        end
def type_qualifier @_type_qualifier ||= begin error_check ( INVALID_OPERATION ) if @kernel . context . platform . version_number < 1.2 ptr = MemoryPointer :: new ( :cl_kernel_arg_type_qualifier ) error = OpenCL . clGetKernelArgInfo ( @kernel , @index , TYPE_QUALIFIER , ptr . size , ptr , nil ) error_check ( error ) TypeQualifier :: new ( ptr . read_cl_kernel_arg_type_qualifier ) end end
Returns a TypeQualifier corresponding to the Arg
Returns a TypeQualifier corresponding to the Arg