microsoft / microsoft/DirectX-Graphics-Samples
Typo in StructureByeStride
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 6.8k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
It's not a proper place to ask but maybe you can point me where I can actually report this:
When Im creating SRV incorrectly, I have D3D12 Error:
D3D12 ERROR: ID3D12Device::CreateShaderResourceView: The Dimensions of the View are invalid due to at least one of the following conditions. Assuming StructureByeStride 48, FirstElement (value = 0) must be between 0 and the maximum offset of the Buffer, -1, inclusively. With the current FirstElement, NumElements (value = 140698833649689) must be between 1 and 0, inclusively, in order that the View fit on the Buffer. [ STATE_CREATION ERROR #31: CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS]
D3D12: **BREAK** enabled for the previous message, which was: [ ERROR STATE_CREATION #31: CREATESHADERRESOURCEVIEW_INVALIDDIMENSIONS ]
StructureByeStride have a typo. Where to report such problems to help DirectX team?
Thanks
P.S. Also I think NumElements (value = 140698833649689) is incorrect
This is how Im creating my SRV
// Create SRV
D3D12_SHADER_RESOURCE_VIEW_DESC srv_desc = {};
srv_desc.Format = DXGI_FORMAT_UNKNOWN;
srv_desc.ViewDimension = D3D12_SRV_DIMENSION_BUFFER;
srv_desc.Buffer.FirstElement = 0;
srv_desc.Buffer.NumElements = 25;// static_cast<UINT>(all_materials_buffer.size());
srv_desc.Buffer.StructureByteStride = sizeof(SurfaceShaderParameters);
srv_desc.Buffer.Flags = D3D12_BUFFER_SRV_FLAG_NONE;
srv_desc.Shader4ComponentMapping = D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING;
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not identify a repository file or test; it only shows a CreateShaderResourceView call and a DirectX diagnostic. Start by determining whether the message originates in this samples repository or in DirectX itself. Done would require a maintainer-confirmed path for correcting or reporting the diagnostic typo and NumElements value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100