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

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 Documentation

◆ exec_hist_to_tex()

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

Variable Documentation

◆ __pad0__

nngn __pad0__

◆ camera

camera = require "nngn.lib.camera"

◆ common

common = require "demos/cl/common"

◆ COMPUTE_UNITS< const >

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

◆ entity

entity = require "nngn.lib.entity"

◆ GLOBAL_SIZE< const >

GLOBAL_SIZE< const > = common.round_down_pow2(COMPUTE_UNITS)

◆ HIST_BYTES< const >

HIST_BYTES< const > = 4 * HIST_SIZE

◆ HIST_SIZE< const >

HIST_SIZE< const > = 4 * 256

◆ IMG_BYTES< const >

IMG_BYTES< const > = 4 * IMG_PIXELS

◆ IMG_PIXELS< const >

◆ IMG_SIZE< const >

IMG_SIZE< const > = 512

◆ LIMITS< const >

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

◆ LOCAL_SIZE< const >

LOCAL_SIZE< const > =

◆ LOCAL_SIZE_SQRT< const >

LOCAL_SIZE_SQRT< const > = math.sqrt(LOCAL_SIZE)

◆ opencl_params

nngn Compute opencl_params {debug = true})