Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


steven166

Member Since 22 Nov 2011
Online Last Active Today, 05:32 PM

Posts I've Made

In Topic: result is always null when creating a geometry shader with stream output

19 July 2015 - 03:00 AM

But if I want to use a single stream for both rasterization and output, so the parameters RasteriziedStream is 0, isn't it?


In Topic: result is always null when creating a geometry shader with stream output

19 July 2015 - 01:54 AM

Thanks a lot, everybody. It worked.


In Topic: result is always null when creating a geometry shader with stream output

18 July 2015 - 06:55 PM

I change the "TEXCOORD1" to "TEXCOORD0", but it doesn't work. I also enable the debug layer, but how can I get more info when something goes wrong?


In Topic: a problem with an unordered access view buffer.

16 July 2015 - 07:33 AM

This is C++ source code for creating a UAV buffer.

        D3D11_BUFFER_DESC descBuf;
	memset(&descBuf, 0, sizeof(descBuf));
	descBuf.StructureByteStride = sizeof(FragmentLink);
	descBuf.ByteWidth = mFrameWidth * mFrameHeight * mNumOfElements * descBuf.StructureByteStride;
	descBuf.MiscFlags = D3D11_RESOURCE_MISC_BUFFER_STRUCTURED;
	descBuf.BindFlags = D3D11_BIND_UNORDERED_ACCESS | D3D11_BIND_SHADER_RESOURCE;
	descBuf.Usage = D3D11_USAGE_DEFAULT;
	descBuf.CPUAccessFlags = 0;

	
	hr = md3dDevice->CreateBuffer(&descBuf, NULL, &m_pFragmentLink);
	SetDebugName(m_pFragmentLink, "Fragment Link Buffer");

	// create UAV
	D3D11_UNORDERED_ACCESS_VIEW_DESC descUAV;
	memset(&descUAV, 0, sizeof(descUAV));
	descUAV.ViewDimension = D3D11_UAV_DIMENSION_BUFFER;
	descUAV.Format = DXGI_FORMAT_UNKNOWN;
	descUAV.Buffer.FirstElement = 0;
	descUAV.Buffer.NumElements = mFrameWidth * mFrameHeight * mNumOfElements;
	descUAV.Buffer.Flags = D3D11_BUFFER_UAV_FLAG_COUNTER;
	//V_RETURN(md3dDevice->CreateUnorderedAccessView(m_pFragmentLink, &descUAV, &m_pFragmentLinkUAV));
	hr = md3dDevice->CreateUnorderedAccessView(m_pFragmentLink, &descUAV, &m_pFragmentLinkUAV);
	SetDebugName(m_pFragmentLinkUAV, "FragmentLinkUAV");

I have thought about the overflow problem, and the error disappear when I increase the maximum number of fragments (mNumOfElements) from 20 to 50. However, when I use add more values into a fragment ( a float4 instead of a float2), then the error occurs again. I am considering about the memory access but I do not know how to use multipasses for debugging.


In Topic: a problem with an unordered access view buffer.

16 July 2015 - 06:31 AM

The error still occurs even a fragment has a single float2.


PARTNERS