1.8 small knot
Read this article shows that you have agreed to the statement
n We write HLSL programs in the ASCII text file and compile them with the D3DxCompileshaderfromFile function in our application.
The n id3dxconstantTable interface allows us to set the variables in the symbol program in the application. This communication is necessary because the variables used by the shader can be changed according to a frame of one frame. For example, if the view matrix in the application has changed, we need to update the shader's view matrix variable using a new view matrix. We can complete this update with ID3dxConstantTable.
N For each shader, we must define an input and an output structure that separates the format of the input and output data in the shader.
n Each shader has an entry point function, which has an input structure parameter for transmitting the data into the shader. In addition, each shader returns an example of an output structure that is used to output data from the shader.
[Declaration]: Introduction to 3D Game Programming With DirectX 9.0 "in this article, it is limited to the translator level, and it is inevitable that there is a mistake in the text. Welcome all netizen criticism; this article is only used for learning exchange and reference usage, not to use In any form of commercial use; if you need to reprint the author's own and translator's consent, maintain the integrity of the article, indicate the author, translator and source, for the consequences of violating the above terms, the translator Do not bear any responsibility. My email address is raymond_king123@hotmade.com, welcome 3D graphics and games, and friends with a certain graphical programming experience to communicate.