nngn
Loading...
Searching...
No Matches
hist.lua File Reference

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)
 

Function Documentation

◆ exec_hist_to_tex()

local function exec_hist_to_tex ( prog ,
hist ,
id ,
buf_in ,
v  )

Variable Documentation

◆ __pad0__

nngn __pad0__

◆ camera

local camera = require "nngn.lib.camera"

◆ common

local common = require "demos/cl/common"

◆ COMPUTE_UNITS< const >

local COMPUTE_UNITS< const > = LIMITS[Compute.COMPUTE_UNITS + 1]

◆ entity

local entity = require "nngn.lib.entity"

◆ GLOBAL_SIZE< const >

local GLOBAL_SIZE< const > = common.round_down_pow2(COMPUTE_UNITS)

◆ HIST_BYTES< const >

local HIST_BYTES< const > = 4 * HIST_SIZE

◆ HIST_SIZE< const >

local HIST_SIZE< const > = 4 * 256

◆ IMG_BYTES< const >

local IMG_BYTES< const > = 4 * IMG_PIXELS

◆ IMG_PIXELS< const >

◆ IMG_SIZE< const >

local IMG_SIZE< const > = 512

◆ LIMITS< const >

local LIMITS< const > = nngn:compute():get_limits()

◆ LOCAL_SIZE< const >

local LOCAL_SIZE< const > =

◆ LOCAL_SIZE_SQRT< const >

local LOCAL_SIZE_SQRT< const > = math.sqrt(LOCAL_SIZE)

◆ opencl_params

nngn Compute opencl_params {debug = true})