ReactOS 0.4.17-dev-934-g091855f
vkd3d_shader_scan_combined_resource_sampler_info Struct Reference

#include <vkd3d_shader.h>

Collaboration diagram for vkd3d_shader_scan_combined_resource_sampler_info:

Public Attributes

enum vkd3d_shader_structure_type type
 
const void * next
 
struct vkd3d_shader_combined_resource_sampler_info * combined_samplers
 
unsigned int combined_sampler_count
 

Detailed Description

A chained structure describing the resource-sampler pairs used by a shader.

This structure extends vkd3d_shader_compile_info.

The information returned in this structure can be used to populate the vkd3d_shader_interface_info::combined_samplers field. This is particularly useful when targeting environments without separate binding points for samplers and resources, like OpenGL.

No resource-sampler pairs are returned for dynamic accesses to resource/sampler descriptor arrays, as can occur in Direct3D shader model 5.1 shaders.

Members of this structure are allocated by vkd3d-shader and should be freed with vkd3d_shader_free_scan_combined_resource_sampler_info() when no longer needed.

Since
1.10

Definition at line 2030 of file vkd3d_shader.h.

Member Data Documentation

◆ combined_sampler_count

unsigned int vkd3d_shader_scan_combined_resource_sampler_info::combined_sampler_count

The number of resource-sampler pairs in combined_samplers.

Definition at line 2040 of file vkd3d_shader.h.

Referenced by shader_glsl_generate_descriptor_declarations().

◆ combined_samplers

struct vkd3d_shader_combined_resource_sampler_info* vkd3d_shader_scan_combined_resource_sampler_info::combined_samplers

Pointer to an array of resource-sampler pairs.

Definition at line 2038 of file vkd3d_shader.h.

Referenced by shader_glsl_generate_descriptor_declarations().

◆ next

const void* vkd3d_shader_scan_combined_resource_sampler_info::next

Optional pointer to a structure containing further parameters.

Definition at line 2035 of file vkd3d_shader.h.

Referenced by vsir_program_compile().

◆ type

enum vkd3d_shader_structure_type vkd3d_shader_scan_combined_resource_sampler_info::type

Must be set to VKD3D_SHADER_STRUCTURE_TYPE_SCAN_COMBINED_RESOURCE_SAMPLER_INFO.

Definition at line 2033 of file vkd3d_shader.h.

Referenced by vsir_program_compile().


The documentation for this struct was generated from the following file: