ICommandList

ICommandList

ภาพรวม

ICommandList เป็นอินเทอร์เฟซใน Aspose.3D FOSS สำหรับ .NET. สืบทอดจาก: IDisposable.

เข้ารหัสลำดับของคำสั่งที่จะถูกส่งไปยัง GPU เพื่อทำการเรนเดอร์.

อินเทอร์เฟซนี้ให้ 10 เมธอดสำหรับการทำงานกับอ็อบเจ็กต์ ICommandList ในโปรแกรม .NET. เมธอดที่มีให้รวมถึง: BindDescriptorSet, BindIndexBuffer, BindPipeline, BindVertexBuffer, Draw, DrawIndex, PushConstants. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน .NET ใดก็ได้หลังจากติดตั้งแพคเกจ Aspose.3D FOSS สำหรับ .NET package.

วิธีการ

ลายเซ็นคำอธิบาย
BindPipeline(pipeline: IPipeline)ผูก pipeline instance สำหรับการเรนเดอร์
BindVertexBuffer(vertexBuffer: IVertexBuffer)ผูก vertex buffer สำหรับการเรนเดอร์
BindIndexBuffer(indexBuffer: IIndexBuffer)ผูก index buffer สำหรับการเรนเดอร์
BindDescriptorSet(descriptorSet: IDescriptorSet)ผูก descriptor set ไปยัง pipeline ปัจจุบัน
Draw(start: int, count: int)วาดโดยไม่ใช้บัฟเฟอร์ดัชนี
Draw()วาดโดยไม่ใช้บัฟเฟอร์ดัชนี
DrawIndex()ดำเนินการวาดแบบมีดัชนีลงในรายการคำสั่ง
DrawIndex(start: int, count: int)ดำเนินการวาดแบบมีดัชนีลงในรายการคำสั่ง
PushConstants(stage: ShaderStage, data: byte[])เรียก PushConstants(stage, data) บนอินสแตนซ์ ICommandList นี้.
PushConstants(stage: ShaderStage, data: byte[], size: int)เรียก PushConstants(stage, data, size) บนอินสแตนซ์ ICommandList นี้.

ดูเพิ่มเติม

 ภาษาไทย