AcTools.Render.Base.Utils.SlimDxExtension.DrawAllPasses C# (CSharp) 메소드

DrawAllPasses() 공개 정적인 메소드

public static DrawAllPasses ( this tech, DeviceContext context, int indexCount ) : void
tech this
context DeviceContext
indexCount int
리턴 void
        public static void DrawAllPasses(this EffectTechnique tech, DeviceContext context, int indexCount) {
            for (var i = 0; i < tech.Description.PassCount; i++) {
                tech.GetPassByIndex(i).Apply(context);
                context.DrawIndexed(indexCount, 0, 0);
            }
        }