private void CreateVertexShader() { System.Diagnostics.Debug.Assert(Stage == ShaderStage.Vertex); _vertexShader = new VertexShader(GraphicsDevice._d3dDevice, _shaderBytecode, null); _inputLayouts = new InputLayoutCache(GraphicsDevice, Bytecode); }