Beispiel #1
0
        public Effect(PPDDevice device, byte[] bytes) : base(device)
        {
            textureSetHandles = new HashSet <EffectHandleBase>();
            effect            = new SharpDX.Direct3D11.Effect((SharpDX.Direct3D11.Device)((PPDFramework.DX11.PPDDevice)device).Device, bytes);
            var tech = effect.GetTechniqueByIndex(0);

            vertexDeclaration = Vertex.VertexDeclarationFactoryManager.Factory.Create(device, this);
        }
Beispiel #2
0
 public Effect(PPDDevice device, byte[] bytes) : base(device)
 {
     effect            = SharpDX.Direct3D9.Effect.FromMemory((SharpDX.Direct3D9.Device)((PPDFramework.DX9.PPDDevice)device).Device, bytes, SharpDX.Direct3D9.ShaderFlags.SkipValidation);
     vertexDeclaration = VertexDeclarationFactoryManager.Factory.Create(device, this);
 }