Prototype declaration:
KMSTATUS KMAPI kmEndPass( IN OUT PKMVERTEXBUFFDESC pVertexBuffDesc );
Description:
Parameters:This function ends Pass. In a multi-pass situation, kmContinuePass can also be used for pass continuation. The code for a multi-pass situation can be written in the two ways shown below. (Example) In the case of three passes (1) (2) kmBeginScene(); kmBeginScene(); kmBeginPass(); kmBeginPass(); ... ... (Pass1) (Pass1) ... ... kmContinuePass kmEndPass(); ... kmBeginPass(); (Pass2) ... ... (Pass2) kmContinuePass ... ... kmEndPass(); (Pass3) kmBeginPass(); ... ... kmEndPass(); (Pass3) kmEndScene(); ... kmEndPass(); kmEndScene();
Return values:pVertexBuffDesc(input) This parameter is a pointer to KMVERTEXBUFFDESC.
Value Explanation KMSTATUS_SUCCESS Success