nngn
|
Functions | |
function | exec_hist_to_tex (prog, hist, id, buf_in, v) |
Variables | |
camera = require "nngn.lib.camera" | |
entity = require "nngn.lib.entity" | |
common = require "demos/cl/common" | |
nngn | __pad0__ |
nngn Compute | opencl_params {debug = true}) |
IMG_SIZE< const > = 512 | |
IMG_PIXELS< const > = IMG_SIZE * IMG_SIZE | |
IMG_BYTES< const > = 4 * IMG_PIXELS | |
HIST_SIZE< const > = 4 * 256 | |
HIST_BYTES< const > = 4 * HIST_SIZE | |
LIMITS< const > = nngn:compute():get_limits() | |
COMPUTE_UNITS< const > = LIMITS[Compute.COMPUTE_UNITS + 1] | |
GLOBAL_SIZE< const > = common.round_down_pow2(COMPUTE_UNITS) | |
LOCAL_SIZE< const > = | |
LOCAL_SIZE_SQRT< const > = math.sqrt(LOCAL_SIZE) | |
function exec_hist_to_tex | ( | prog | , |
hist | , | ||
id | , | ||
buf_in | , | ||
v | |||
) |
nngn __pad0__ |
camera = require "nngn.lib.camera" |
common = require "demos/cl/common" |
COMPUTE_UNITS< const > = LIMITS[Compute.COMPUTE_UNITS + 1] |
entity = require "nngn.lib.entity" |
GLOBAL_SIZE< const > = common.round_down_pow2(COMPUTE_UNITS) |
HIST_BYTES< const > = 4 * HIST_SIZE |
HIST_SIZE< const > = 4 * 256 |
IMG_BYTES< const > = 4 * IMG_PIXELS |
IMG_PIXELS< const > = IMG_SIZE * IMG_SIZE |
IMG_SIZE< const > = 512 |
LIMITS< const > = nngn:compute():get_limits() |
LOCAL_SIZE< const > = |
LOCAL_SIZE_SQRT< const > = math.sqrt(LOCAL_SIZE) |
nngn Compute opencl_params {debug = true}) |