Skip to content

Typo in StructureByeStride #894

@krupitskas

Description

@krupitskas

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions