Esempio n. 1
0
        internal override void BuildRenderList(RenderList renderList)
        {
            renderList.AddRenderItem(new RenderItem(
                                         this,
                                         _effect,
                                         _pipelineStateHandle,
                                         (commandEncoder, effect, pipelineStateHandle, instanceData) =>
            {
                _effect.SetTexture(Texture);
                _effect.SetMipMapLevel(SelectedMipMapLevel);

                _effect.Apply(commandEncoder);

                commandEncoder.Draw(PrimitiveType.TriangleList, 0, 3);
            }));
        }