lib/opencl_ruby_ffi/Kernel.rb
# Returns an AccessQualifier corresponding to the Arg
Returns an AccessQualifier corresponding to the Arg
Returns an AccessQualifier corresponding to the Arg
def access_qualifier
          @_access_qualifier ||= begin
            error_check(INVALID_OPERATION) if @kernel.context.platform.version_number < 1.2
            ptr = MemoryPointer::new( :cl_kernel_arg_access_qualifier )
            error = OpenCL.clGetKernelArgInfo(@kernel, @index, ACCESS_QUALIFIER, ptr.size, ptr, nil)
            error_check(error)
            AccessQualifier::new( ptr.read_cl_kernel_arg_access_qualifier )
          end
        end
def access_qualifier @_access_qualifier ||= begin error_check ( INVALID_OPERATION ) if @kernel . context . platform . version_number < 1.2 ptr = MemoryPointer :: new ( :cl_kernel_arg_access_qualifier ) error = OpenCL . clGetKernelArgInfo ( @kernel , @index , ACCESS_QUALIFIER , ptr . size , ptr , nil ) error_check ( error ) AccessQualifier :: new ( ptr . read_cl_kernel_arg_access_qualifier ) end end
Returns an AccessQualifier corresponding to the Arg
Returns an AccessQualifier corresponding to the Arg