Coder Social home page Coder Social logo

sharpdx_demo's People

Contributors

robydx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sharpdx_demo's Issues

Version

update the code to version 2.6.2

Older version

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 :)

Tutorial 4 Error in HLSL.txt

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");

TutorialD1 crash due to null reference exception when Form1_Resize

Hello @RobyDX , I found a crash issue due to WindowRenderTarget target is null when Form1_Resize is invoked.
image

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.

DLL Not Found Exception

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.

TutorialA1

Most of the samples seem to work except TutorialA1.

The form does not load and it is not possible to test Audio.

Samples update

@RobyDX
Hello! Can you please update your samples to SharpDX 4.0.1? Due to amount of api changes current samples not compilable.

Error in vertexshader creation

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

Font.UpdateResources fails in debug mode

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;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.