BabylonJS/Spector.js

View on GitHub
src/backend/commands/drawElementsInstanced.ts

Summary

Maintainability
B
6 hrs
Test Coverage
import { BaseCommand } from "./baseCommand";
import { WebGlConstants } from "../types/webglConstants";

export class DrawElementsInstanced extends BaseCommand {
    public static readonly commandName = "drawElementsInstanced";

    protected get spiedCommandName(): string {
        return DrawElementsInstanced.commandName;
    }

    protected stringifyArgs(args: IArguments): string[] {
        const stringified = [];
        stringified.push(WebGlConstants.stringifyWebGlConstant(args[0], "drawElementsInstanced"));
        stringified.push(args[1] + " indices");
        stringified.push(WebGlConstants.stringifyWebGlConstant(args[2], "drawElementsInstanced"));
        stringified.push(args[3]);
        stringified.push(args[4]);

        return stringified;
    }
}