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