Пример #1
0
        public override ShaderTextureBinding CreateShaderTextureBinding(DeviceTexture texture)
        {
            D3DTexture d3dTexture = (D3DTexture)texture;
            ShaderResourceViewDescription srvd = d3dTexture.GetShaderResourceViewDescription();
            ShaderResourceView            srv  = new ShaderResourceView(_device, d3dTexture.DeviceTexture, srvd);

            return(new D3DTextureBinding(srv, d3dTexture));
        }
Пример #2
0
 public D3DTextureBinding(ShaderResourceView srv, D3DTexture texture)
 {
     ResourceView = srv;
     Texture      = texture;
 }