11///
2- /// Class: gpu_core
2+ /// Class: GPUCore
33///
4- /// *gpu_core .js* internal functions namespace
4+ /// *GPUCore .js* internal functions namespace
55/// *gpu.js* PUBLIC function namespace
66///
77/// I know @private makes more sense, but since the documentation engine state is undetirmined.
88/// (See https://github.com/gpujs/gpu.js/issues/19 regarding documentation engine issue)
99/// File isolation is currently the best way to go
1010///
11- var gpu_core = ( function ( ) {
11+ var GPUCore = ( function ( ) {
1212
13- function gpu_core ( ) {
13+ function GPUCore ( ) {
1414 var gl , canvas ;
1515
1616 canvas = undefined ;
@@ -28,11 +28,11 @@ var gpu_core = (function() {
2828 this . functionBuilder . polyfillStandardFunctions ( ) ;
2929 }
3030
31- gpu_core . prototype . getWebgl = function ( ) {
31+ GPUCore . prototype . getWebgl = function ( ) {
3232 return this . webgl ;
3333 } ;
3434
35- gpu_core . prototype . getCanvas = function ( mode ) {
35+ GPUCore . prototype . getCanvas = function ( mode ) {
3636 if ( mode == "cpu" ) {
3737 return null ;
3838 }
@@ -102,7 +102,7 @@ var gpu_core = (function() {
102102 }
103103 }
104104 } ;
105- gpu_core . prototype . createKernel = createKernel ;
105+ GPUCore . prototype . createKernel = createKernel ;
106106
107107 ///
108108 /// Function: addFunction
@@ -121,17 +121,17 @@ var gpu_core = (function() {
121121 this . functionBuilder . addFunction ( null , jsFunction , paramTypeArray , returnType ) ;
122122 return this ;
123123 }
124- gpu_core . prototype . addFunction = addFunction ;
124+ GPUCore . prototype . addFunction = addFunction ;
125125
126126
127127
128- gpu_core . prototype . textureToArray = function ( texture ) {
128+ GPUCore . prototype . textureToArray = function ( texture ) {
129129 var copy = this . createKernel ( function ( x ) {
130130 return x [ this . thread . z ] [ this . thread . y ] [ this . thread . x ] ;
131131 } ) ;
132132
133133 return copy ( texture ) ;
134134 } ;
135135
136- return gpu_core ;
136+ return GPUCore ;
137137} ) ( ) ;
0 commit comments