/** * Render this component */ void RenderComponent::Render(const RenderDevice& device) { // Set the texture resource device.GetImmediateContext()->PSSetShaderResources(0, 1, &_texture); // Set the vertex buffer _mesh->Render(device); }