The directx11 tag has no wiki summary.
1
vote
0answers
25 views
VS2012 C++: Unable to ID3D11Device::CreateVertexShader when loading compiled CSO file
I have been trying to get a tutorial Direct X 11 application running for some time now. I'm being stymied when I try to create the vertex shader. Setting the Direct X Debug setting reveals that I am ...
1
vote
0answers
42 views
Direct3d Techniques and Windows 8
Under Windows 8, what is the alternative to this code:
technique11 Light0Tex
{
pass P0
{
...
technique11 Light1Tex
{
pass P0
{
...
And:
Light1Tech = ...
2
votes
1answer
25 views
DirectX11 CreateWICTextureFromMemory Using PNG
I've currently got textures loading using CreateWICTextureFromFile however I'd like a little more control over it, and I'd like to store images in their byte form in a resource loader. Below is just ...
3
votes
1answer
49 views
DirectX Unproject troubles
I have an orthographic projection and I try to unproject a point from screen space.
Following are the view and projection matrices:
var w2 = ScreenWidthInPixels/2;
var h2 = ScreenHeightInPixels/2;
...
4
votes
1answer
49 views
Tessellation Texture Coordinates
Firstly some info - I'm using DirectX 11 , C++ and I'm a fairly good programmer but new to tessellation and not a master graphics programmer.
I'm currently implementing a tessellation system for a ...
4
votes
2answers
80 views
ConsumeStructuredBuffer, what am I doing wrong?
I'm trying to implement the 3rd exercise in chapter 12 of Introduction to 3D Game Programming with DirectX 11, that is:
Implement a Compute Shader to calculate the length of 64 vectors.
Previous ...
1
vote
1answer
60 views
Texture the quad with different parts of texture
I have a 2D quad. Let say it's position is (5,10) and size is (7,11).
I want to texture it with one texture, but using three different parts of it.
I want to texture the part of quad from x = 5 to x ...
3
votes
1answer
60 views
Mapping dynamic buffers in Direct3D11 in Windows Store apps
I'm trying to make instanced geometry in Direct3D11, and the ID3D11DeviceContext1->Map() call is failing with the very helpful error of "Invalid Parameter" when I'm attempting to update the ...
1
vote
3answers
124 views
relationship between the model and the renderer
I tried to build a simple graphics engine, and faced with this problems:
i have a list of models that i need to draw, and object (renderer) that implements IRenderer interface with method ...
0
votes
0answers
78 views
Need help transforming DirectX 9 skybox hlsl shader to DirectX 11
I am in the middle of implementing a skybox to my game. I have been following this tutorial http://rbwhitaker.wikidot.com/skyboxes-2. I am using MonoGame as a framework and in order to support both ...
1
vote
1answer
46 views
Direct2D gamma correction
I'm using direct2d and direct3d together and having an issue with gamma correction. My direct3d backbuffer is using an SRGB format and when I render images from direct2d onto the direct3d surface, ...
4
votes
1answer
62 views
Deferred contexts and inheriting state from the immediate context
I took my first stab at using deferred contexts in DirectX 11 today. Basically, I created my deferred context using CreateDeferredContext() and then drew a simple triangle strip with it.
Early on in ...
5
votes
1answer
174 views
Partial Shader Signatures HLSL D3D11 C++
I had been debugging a problem I was having in a single shader file with 2 functions in it. I'm using DirectX 11, vs_5_0 and ps_5_0. I have stripped it down to its basic components to understand what ...
0
votes
1answer
125 views
Building View Matrix in Direct3D11
Am I doing it right? I converted this.
m_ViewMatrix = XMMatrixLookAtLH(XMLoadFloat3(&m_Position), lookAtVector, upVector);
to this one.
XMVECTOR vz = XMVector3Normalize( lookAtVector - ...
0
votes
0answers
132 views
C++ Directx 11 D3DXVECTOR3 doesn't allow me to devide it
If i have a simple vector3 like this:
D3DXVECTOR3 inversevector = D3DXVECTOR3( (pos+lookat_pos));
It works perfect!
But let's say i wanted to multiply it by:
Speed*(float) timeHandler.GetDelta()
...