Handbook
Glossary
map-resource ( resource -- device-ptr size )
Vocabulary
cuda
.
gl
Inputs
resource
an
object
Outputs
device-ptr
an
object
size
an
object
Definition
USING:
alien.c-types
alien.data
cuda
cuda.ffi
kernel
;
IN:
cuda.gl
:
map-resource
( resource -- device-ptr size )
[
1
swap
void*
<ref>
f
cuGraphicsMapResources
cuda-error
]
[
[
{
CUdeviceptr
uint
}
]
dip
[
cuGraphicsResourceGetMappedPointer
cuda-error
]
curry
with-out-parameters
]
bi
;
inline