public DisassembleCommand(GameCacheContext cacheContext, CachedTagInstance tag, T definition) : base(true, "Disassemble", "Disassembles a VertexShader at the specified index.", "Disassemble <index>", "<index> - index into the VertexShaders tagblock.") { CacheContext = cacheContext; Tag = tag; Definition = definition; }
public CompileCommand(GameCacheContext cacheContext, CachedTagInstance tag, T definition) : base(true, "Compile", "Compiles HLSL source file against shader profile vs_3_0", "Compile <index> <file.hlsl>", "Compiles <file.hlsl> against shader profile vs_3_0" + "into shader bytecode, generates a VertexShaderBlock element\n" + "and writes it over <index>") { CacheContext = cacheContext; Tag = tag; Definition = definition; }
public ResourceSerializationContext(GameCacheContext cacheContext, PageableResource resource) { CacheContext = cacheContext; Resource = resource; }
public static void Populate(CommandContext commandContext, GameCacheContext cacheContext, CachedTagInstance tag, T shader) { commandContext.AddCommand(new GenerateShader <T>(cacheContext, tag, shader)); commandContext.AddCommand(new CompileCommand <T>(cacheContext, tag, shader)); commandContext.AddCommand(new DisassembleCommand <T>(cacheContext, tag, shader)); }
public static void Populate(CommandContext commandContext, GameCacheContext cacheContext, CachedTagInstance tag, RenderMethodTemplate render_method_template) { commandContext.AddCommand(new GenerateRenderMethodTemplate(cacheContext, tag, render_method_template)); }