lib/opencl_ruby_ffi/Kernel.rb
def address_qualifier
          @_address_qualifier ||= begin
            error_check(INVALID_OPERATION) if @kernel.context.platform.version_number < 1.2
            ptr = MemoryPointer::new( :cl_kernel_arg_address_qualifier )
            error = OpenCL.clGetKernelArgInfo(@kernel, @index, ADDRESS_QUALIFIER, ptr.size, ptr, nil)
            error_check(error)
            AddressQualifier::new( ptr.read_cl_kernel_arg_address_qualifier )
          end
        end
# Returns an AddressQualifier corresponding to the Arg
Returns an AddressQualifier corresponding to the Arg
Returns an AddressQualifier corresponding to the Arg
def address_qualifier
          @_address_qualifier ||= begin
            error_check(INVALID_OPERATION) if @kernel.context.platform.version_number < 1.2
            ptr = MemoryPointer::new( :cl_kernel_arg_address_qualifier )
            error = OpenCL.clGetKernelArgInfo(@kernel, @index, ADDRESS_QUALIFIER, ptr.size, ptr, nil)
            error_check(error)
            AddressQualifier::new( ptr.read_cl_kernel_arg_address_qualifier )
          end
        end
def address_qualifier @_address_qualifier ||= begin error_check ( INVALID_OPERATION ) if @kernel . context . platform . version_number < 1.2 ptr = MemoryPointer :: new ( :cl_kernel_arg_address_qualifier ) error = OpenCL . clGetKernelArgInfo ( @kernel , @index , ADDRESS_QUALIFIER , ptr . size , ptr , nil ) error_check ( error ) AddressQualifier :: new ( ptr . read_cl_kernel_arg_address_qualifier ) end end
Returns an AddressQualifier corresponding to the Arg
Returns an AddressQualifier corresponding to the Arg