Practical Rendering and
Computation with Direct3D 11
Jason Zink
Matt Pettineo
Jack Hoxley
CRC Press
Taylor & Francis Croup
Boca Raton London New York
CRC Press is an imprint of the
Taylor St Francis Group, an informa business
AN A K PETERS BOOK
CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742
© 2011 by Taylor & Francis Group, LLC
CRC Press is an imprint of Taylor & Francis Group, an Informa business
No claim to original U.S. Government works
Printed in the United States of America on acid-free paper
International Standard Book Number: 978-1-56881-720-0 (Hardback)
This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been made
to publish reliable data and information, but the author and publisher cannot assume responsibility for the validity of all
materials or the consequences of their use. The authors and publishers have attempted to trace the copyright holders of
all material reproduced in this publication and apologize to copyright holders if permission to publish in this form has not
been obtained. If any copyright material has not been acknowledged please write and let us know so we may rectify in
any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or utilized
in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopying,
microfilming, and recording, or in any information storage or retrieval system, without written permission from the
publishers.
For permission to photocopy or use material electronically from this work, please access www.copyright.com (http://
www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923,
978-750-8400. CCC is a not-for-profit organization that provides licenses and registration for a variety of users. For orga-
nizations that have been granted a photocopy license by the CCC, a separate system of payment has been arranged.
Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used only for
identification and explanation without intent to infringe.
Library of Congress Cataloging-in-Publication Data
Zink, Jason.
Practical rendering and computation with Direct3D 11 / Jason Zink, Matt Pettineo, Jack Hoxley.
p. cm.
"An A.K. Peters book."
Includes bibliographical references and index.
ISBN 978-1-56881-720-0 (hardback)
1. Rendering (Computer graphics) 2. Three-dimensional display systems. 3. Direct3D. I. Pettineo, Matt. II.
Hoxley, Jack. HI. Title.
T385.Z567 2011
006.6'836-dc22
2011010362
Visit the Taylor & Francis Web site at
http://www.taylorandfrancis.com
and the CRC Press Web site at
http://www.crcpress.com
I dedicate this book to my wife, Janice, and to my two
daughters, Jayla and Juliet. Thank you for your unending
love and support—this book would not have been possible
without it!
—Jason Zink
My writing is the culmination of many years of experience
and support gained from many people in offline and online
communities. I thank you all.
-Jack Hoxley
For my parents.
—Matt Pettineo
Contents
Preface xi
What To Expect From This Book xii
How This Book Is Organized xiii
1. Overview of Direct3D 11 1
1.1 Direct3D Framework 2
1.2 Pipeline 4
1.3 Resources 8
1.4 Interfacing with Direct3D 10
1.5 Getting Started 11
2. Direct3D 11 Resources 27
2.1 Resources Overview 28
2.2 Resources in Detail 42
2.3 Resource Manipulations 108
3. The Rendering Pipeline 117
3.1 Pipeline State 118
3.2 Pipeline Execution 124
3.3 Input Assembler 127