|
@@ -55,6 +55,11 @@ public:
|
|
uint32_t translateType(QualType type,
|
|
uint32_t translateType(QualType type,
|
|
LayoutRule layoutRule = LayoutRule::Void);
|
|
LayoutRule layoutRule = LayoutRule::Void);
|
|
|
|
|
|
|
|
+ /// \brief Translates the given HLSL resource type into its SPIR-V
|
|
|
|
+ /// instructions and returns the <result-id>. Returns 0 on failure.
|
|
|
|
+ uint32_t translateResourceType(QualType type, LayoutRule rule,
|
|
|
|
+ bool isDepthCmp = false);
|
|
|
|
+
|
|
/// \brief Generates the SPIR-V type for the counter associated with a
|
|
/// \brief Generates the SPIR-V type for the counter associated with a
|
|
/// {Append|Consume}StructuredBuffer: an OpTypeStruct with a single 32-bit
|
|
/// {Append|Consume}StructuredBuffer: an OpTypeStruct with a single 32-bit
|
|
/// integer value. This type will be decorated with BufferBlock.
|
|
/// integer value. This type will be decorated with BufferBlock.
|
|
@@ -280,10 +285,6 @@ private:
|
|
/// constnesss and literalness.
|
|
/// constnesss and literalness.
|
|
static bool canTreatAsSameScalarType(QualType type1, QualType type2);
|
|
static bool canTreatAsSameScalarType(QualType type1, QualType type2);
|
|
|
|
|
|
- /// \brief Translates the given HLSL resource type into its SPIR-V
|
|
|
|
- /// instructions and returns the <result-id>. Returns 0 on failure.
|
|
|
|
- uint32_t translateResourceType(QualType type, LayoutRule rule);
|
|
|
|
-
|
|
|
|
/// \brief For the given sampled type, returns the corresponding image format
|
|
/// \brief For the given sampled type, returns the corresponding image format
|
|
/// that can be used to create an image object.
|
|
/// that can be used to create an image object.
|
|
spv::ImageFormat translateSampledTypeToImageFormat(QualType type);
|
|
spv::ImageFormat translateSampledTypeToImageFormat(QualType type);
|