You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the definition of cl-cuda-interop:alloc-memory-block, since alloc-gl-array function's type argument accepts only symbols, structure type references must be passd to type in bare style which is actually deprecated in CFFI. For example, foo must be passed instead of (:struct foo).
As a working around for this problem, I define bare-cffi-type function which convert structure type references from the form (:struct foo) to foo, and pass its returning value to alloc-gl-array function.
(alloc-gl-array (bare-cffi-type type) count)
This problem is already reported on cl-opengl's issue tracker #41.
The text was updated successfully, but these errors were encountered:
takagi
changed the title
Passing structure type references to ALLOC-GL-ARRAY function's TYPE argument
Passing structure type references to ALLOC-GL-ARRAY's TYPE argument
Jul 1, 2014
takagi
changed the title
Passing structure type references to ALLOC-GL-ARRAY's TYPE argument
passing structure type references to ALLOC-GL-ARRAY's TYPE argument
Jul 1, 2014
In the definition of
cl-cuda-interop:alloc-memory-block
, sincealloc-gl-array
function'stype
argument accepts only symbols, structure type references must be passd totype
in bare style which is actually deprecated in CFFI. For example,foo
must be passed instead of(:struct foo)
.As a working around for this problem, I define
bare-cffi-type
function which convert structure type references from the form(:struct foo)
tofoo
, and pass its returning value toalloc-gl-array
function.This problem is already reported on cl-opengl's issue tracker #41.
The text was updated successfully, but these errors were encountered: