robydx / sharpdx_demo Goto Github PK
View Code? Open in Web Editor NEWDirectX11 Tutorial based on SharpDx library
Home Page: http://www.notjustcode.it
License: MIT License
DirectX11 Tutorial based on SharpDx library
Home Page: http://www.notjustcode.it
License: MIT License
update the code to version 2.6.2
Hi,
Thanks about samples.But solution file can not open VS2012 Win7 platform.I know, its requires .net 4.5 platform(win8).Everyone can't install win8 :)
When I attempt to run Tutorial4 with debugging in Visual Studio 2013, SharpShader.cs throws an exception:
An unhandled exception of type 'SharpDX.CompilationException' occurred in SharpDX.D3DCompiler.dll
Additional information: C:\Users\bhicks\Documents\Visual Studio 2013\Projects\SharpDX Tutorial\SharpDXTutorial\Tutorial4\HLSL.txt(1,1): error X3000: Illegal character in shader file
Visual Studio identifies line 105 in SharpShader.cs as the cause of the error. The line is as follows:
var vertexShaderByteCode = ShaderBytecode.CompileFromFile(filename, description.VertexShaderFunction, "vs_5_0");
Hello @RobyDX , I found a crash issue due to WindowRenderTarget target
is null when Form1_Resize
is invoked.
My environment:
System: Windows 10
.NET Framework: .net 4.8 and Visual Studio 2022.
After debugging the code. I found it is caused by the method calling stack:
InitializeComponent
-> Form1_Resize
-> Form1_Load
After adding a null
check, this problem has been solved. I will create a pull request.
I am getting the following error:
An unhandled exception of type 'System.DllNotFoundException' occurred in SharpDX.Direct3D11.dll
Additional information: Unable to load DLL 'd3dx11_43.dll': The specified module could not be found. > (Exception from HRESULT: 0x8007007E)
At line 95 in tutorial 18:
g.Material.DiffuseTexture = ShaderResourceView.FromFile(device.Device, path + g.Material.DiffuseTextureName);
and line 105 in tutorial 5:
ShaderResourceView texture = ShaderResourceView.FromFile(device.Device, "../../texture.bmp");
none of the tutorials 5-18 are working for this reason.
Most of the samples seem to work except TutorialA1.
The form does not load and it is not possible to test Audio.
@RobyDX
Hello! Can you please update your samples to SharpDX 4.0.1? Due to amount of api changes current samples not compilable.
How can I specify the buffer I want to read from by name?
_
My machine has directX 11, but only supports 10.1 feature set. Windows 7. I have been commenting out the directx11supported error window.
Not sure if this is the same as or related to the issue #4( i think, about the txt file), but i get this error when i try to run tutorials. It seems to happen on tutorials 4 and later. The breakpoint is in the SharpShader class line 106
VertexShader = new VertexShader(Device.Device, vertexShaderByteCode);
Sorry, i am new to this and not very experienced at debugging it
An unhandled exception of type 'SharpDX.SharpDXException' occurred in SharpDX.dll
Additional information: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.
RESOLVED. Demo's do not work in with 10.1 feature level
In the SharpDevice constructor, the creation flags are cleared when debug = true. This causes a failure with the Font because it requires BgraSupport
I changed this
if (debug)
flag = DeviceCreationFlags.Debug;
to this in SharpDevice()
if (debug)
flag |= DeviceCreationFlags.Debug;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.