amerkoleci / Vortice.Windows

.NET bindings for Direct3D12, Direct3D11, WIC, Direct2D1, XInput, XAudio, X3DAudio, DXC, Direct3D9 and DirectInput.
MIT License
1.01k stars 73 forks source link

Custom DxcIncludeHandler #377

Closed PhoneCoolie closed 1 year ago

PhoneCoolie commented 1 year ago

Discussed in https://github.com/amerkoleci/Vortice.Windows/discussions/153

I'm attempting to migrate the following code from SharpDX but cant work out the equivalent in Vortice.Windows:

UntexturedVertexShaderByteCode = ShaderBytecode.Compile(UntexturedShaderBytes, "VS", "vs_4_0"); UntexturedVertexShader = new VertexShader(DeviceFactory.D3DDevice, UntexturedVertexShaderByteCode);

UntexturedInputSignature = ShaderSignature.GetInputSignature(UntexturedVertexShaderByteCode); UntexturedInputLayout = new InputLayout(DeviceFactory.D3DDevice, UntexturedInputSignature, elements);

Could you point me in the right direction please?

Thanks Paul