Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 19, 2020. It is now read-only.
/cgc-opensrcPublic archive

Cg open-source compiler

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
License.txt
NotificationsYou must be signed in to change notification settings

castano/cgc-opensrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

-------------------RELEASE INFORMATION-------------------This release builds the Cg compiler (cgc.exe) with the "generic" profile,which does some minimal semantic checks and prints out a tree representationof the code.  It can be built either with the included Microsoft Visual C++ 6.0 projectsand workspace, or with the included Makefile.The release contains a pre-built parser (parser.c and parser.h) builtfrom parser.y with GNU bison.  Rebuilding will require GNU bison ifyou make any changes to parser.yThis release contains the front-end to the compiler, plus a 'trivial'back-end (profile) that does some limited checking and outputs a parse treeto stdout. This back-end is almost entirely encapsulted in generic_hal.[ch]hal.[ch] describes the hardware abstraction layer by which profilescommunicate with the front-end.  To add a new profile, you can usegeneric_hal.c as a framework/example.  A profile must register itselfwith the HAL by calling RegisterProfile as part of compiler startup.Then, if selected via the appropriate command line argument, theprofile will be called to verify various constructs in the source code,deal with connector semantics, and finally, generate code.  Seegeneric_hal.c for more details. The directory contains 4 examples: vertexlight.cg, vertexlight4.cg,position.cg, and reflection.cg. After building cgc.exe, you can usefollowing command line to compile these:   cgc -profile generic <example_file_name>This release prints the output to stdout only.Developers can download all the latest Cg-related content from the Cg website at:http://www.nvidia.com/Cg-------LICENSE-------Copyright (c) 2002, NVIDIA Corporation.NVIDIA Corporation("NVIDIA") supplies this software to you inconsideration of your agreement to the following terms, and your use,installation, modification or redistribution of this NVIDIA softwareconstitutes acceptance of these terms.  If you do not agree with theseterms, please do not use, install, modify or redistribute this NVIDIAsoftware.In consideration of your agreement to abide by the following terms, andsubject to these terms, NVIDIA grants you a personal, non-exclusivelicense, under NVIDIA's copyrights in this original NVIDIA software (the"NVIDIA Software"), to use, reproduce, modify and redistribute theNVIDIA Software, with or without modifications, in source and/or binaryforms; provided that if you redistribute the NVIDIA Software, you mustretain the copyright notice of NVIDIA, this notice and the followingtext and disclaimers in all such redistributions of the NVIDIA Software.Neither the name, trademarks, service marks nor logos of NVIDIACorporation may be used to endorse or promote products derived from theNVIDIA Software without specific prior written permission from NVIDIA.Except as expressly stated in this notice, no other rights or licensesexpress or implied, are granted by NVIDIA herein, including but notlimited to any patent rights that may be infringed by your derivativeworks or by other works in which the NVIDIA Software may beincorporated. No hardware is licensed hereunder. THE NVIDIA SOFTWARE IS BEING PROVIDED ON AN "AS IS" BASIS, WITHOUTWARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED,INCLUDING WITHOUT LIMITATION, WARRANTIES OR CONDITIONS OF TITLE,NON-INFRINGEMENT, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, ORITS USE AND OPERATION EITHER ALONE OR IN COMBINATION WITH OTHERPRODUCTS.IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT,INCIDENTAL, EXEMPLARY, CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITEDTO, LOST PROFITS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OFUSE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) OR ARISING IN ANY WAYOUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THENVIDIA SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT,TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IFNVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

Cg open-source compiler

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
License.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp