MCPcopy Create free account
hub / github.com/baldurk/renderdoc / MakeUsedDescriptor

Function MakeUsedDescriptor

qrenderdoc/Windows/TextureViewer.cpp:100–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static UsedDescriptor MakeUsedDescriptor(ShaderStage stage, ResourceId res,
101 Subresource sub = Subresource())
102{
103 UsedDescriptor ret;
104 ret.descriptor = MakeDescriptor(res, sub);
105 ret.access.stage = stage;
106 ret.access.type = ret.descriptor.type;
107 ret.access.index = DescriptorAccess::NoShaderBinding;
108 ret.access.byteSize = 1;
109 return ret;
110}
111
112static QMap<QString, ShaderEncoding> encodingExtensions = {
113 {lit("hlsl"), ShaderEncoding::HLSL},

Callers 1

GetReadOnlyResourcesMethod · 0.85

Calls 2

SubresourceClass · 0.85
MakeDescriptorFunction · 0.85

Tested by

no test coverage detected