Movatterモバイル変換


[0]ホーム

URL:


The Cg Tutorial

The Cg Tutorial is now available, right here, online. You canpurchase a beautifully printed version of this book, and others in the series, at a 30% discount courtesy of InformIT and Addison-Wesley.

Please visit ourRecent Documents page to see all the latest whitepapers and conference presentations that can help you with your projects.







Appendix D. Cg Keywords

Appendix D. Cg Keywords

D.1 Cg Keyword List

Following is the list of Cg reserved words. Words marked with an asterisk are case-insensitive.

In addition to the words on this list, any identifier with two underscores as a prefix (for example, __newType) is reserved. Note that matrix and vector types (such ashalf2x3 orfloat4) are not on this list because they can be used as identifiers. Still, we recommend that you treat the matrix and vector types as reserved words, thereby avoiding confusion.

asm*              explicit           pixelfragment*       templateasm_fragment      extern             pixelshader*         texture*auto              FALSE              private              texture1Dbool              fixed              protected            texture2Dbreak             float*             public               texture3Dcase              for                register             textureCUBEcatch             friend             reinterpret_cast     textureRECTchar              get                return               thisclass             goto               row_major            throwcolumn_major      half               sampler              TRUEcompile           if                 sampler_state        tryconst             in                 sampler1D            typedefconst_cast        inline             sampler2D            typeidcontinue          inout              sampler3D            typenamedecl*             int                samplerCUBE          uniformdefault           interface          shared               uniondelete            long               short                unsigneddiscard           matrix*            signed               usingdo                mutable            sizeof               vector*double            namespace          static               vertexfragment*dword*            new                static_cast          vertexshader*dynamic_cast      operator           string*              virtualelse              out                struct               voidemit              packed             switch               volatileenum              pass*              technique*           while

Copyright

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and Addison-Wesley was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals.

The authors and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein.

The publisher offers discounts on this book when ordered in quantity for bulk purchases and special sales. For more information, please contact:

U.S. Corporate and Government Sales
(800) 382-3419
corpsales@pearsontechgroup.com

For sales outside of the U.S., please contact:

International Sales
international@pearsontechgroup.com

Visit Addison-Wesley on the Web:www.awprofessional.com

Library of Congress Control Number: 2002117794

Copyright © 2003 by NVIDIA Corporation

Cover image © 2003 by NVIDIA Corporation

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior consent of the publisher. Printed in the United States of America. Published simultaneously in Canada.

For information on obtaining permission for use of material from this work, please submit a written request to:

Pearson Education, Inc.
Rights and Contracts Department
75 Arlington Street, Suite 300
Boston, MA 02116
Fax: (617) 848-7047

Text printed on recycled paper at RR Donnelley Crawfordsville in Crawfordsville, Indiana.

8 9 10111213 DOC 09 08 07
8th Printing, November 2007

Developer Site Homepage

Developer News Homepage



Developer Login

Become a
Registered Developer




Developer Tools

Documentation

DirectX

OpenGL

GPU Computing

Handheld

Events Calendar



Newsletter Sign-Up

Drivers

Jobs (1)

Contact

Legal Information



Site Feedback

[8]ページ先頭

©2009-2025 Movatter.jp