-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
julien.hamaide
committed
May 3, 2012
1 parent
ca9197e
commit e30fcdd
Showing
11 changed files
with
535 additions
and
535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
function _shader_shaker_main(script_path, output_file) | ||
|
||
-- if running off the disk (in debug mode), load everything | ||
-- listed in _manifest.lua; the list divisions make sure | ||
-- everything gets initialized in the proper order. | ||
if script_path then | ||
local scripts = dofile(script_path .. "/_manifest.lua") | ||
for _,v in ipairs(scripts) do | ||
dofile(script_path .. "/" .. v) | ||
end | ||
end | ||
if output_file ~= nil then | ||
InitializeOutputFile( output_file ) | ||
else | ||
InitializeOutputPrint() | ||
end | ||
-- if running off the disk (in debug mode), load everything | ||
-- listed in _manifest.lua; the list divisions make sure | ||
-- everything gets initialized in the proper order. | ||
if script_path then | ||
local scripts = dofile(script_path .. "/_manifest.lua") | ||
for _,v in ipairs(scripts) do | ||
dofile(script_path .. "/" .. v) | ||
end | ||
end | ||
if output_file ~= nil then | ||
InitializeOutputFile( output_file ) | ||
else | ||
InitializeOutputPrint() | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
|
||
function DefineInput() | ||
input = { __semantic = {} } | ||
input = { __semantic = {} } | ||
end | ||
|
||
function InputAttribute( name, type, semantic ) | ||
|
||
if input[ name ] ~= nil then | ||
error( "An entry named '" .. name .."' already exists in the input structure", 2 ) | ||
end | ||
if input.__semantic[ semantic ] ~= nil then | ||
error( "An entry already have the semantic '" .. semantic .. "' in the input structure", 2 ) | ||
end | ||
-- :TODO: Validate semantic and type value | ||
local input_variable = { type = type, value = name, node = "Input", semantic = semantic } | ||
input[ name ] = input_variable | ||
input.__semantic[ semantic ] = input_variable | ||
Language.AttachVectorMetatable( input_variable ) | ||
if input[ name ] ~= nil then | ||
error( "An entry named '" .. name .."' already exists in the input structure", 2 ) | ||
end | ||
if input.__semantic[ semantic ] ~= nil then | ||
error( "An entry already have the semantic '" .. semantic .. "' in the input structure", 2 ) | ||
end | ||
-- :TODO: Validate semantic and type value | ||
local input_variable = { type = type, value = name, node = "Input", semantic = semantic } | ||
input[ name ] = input_variable | ||
input.__semantic[ semantic ] = input_variable | ||
Language.AttachVectorMetatable( input_variable ) | ||
end | ||
|
||
function EndInput() | ||
-- :TODO: Validate structure | ||
-- :TODO: Validate structure | ||
end |
Oops, something went wrong.